Site Info is a module which displays site related information by simply installing it. It provides the following things:
- Site Name
- Drupal Version
- PHP Version
- Database Information
- Content Type
- User
This module extends Drupal to provide brief inforamtion about the website. That information might be helpful for site administrator. Site administrator(s) would be able to get the Site Information in a single page.
Known problems
Displaying the whole Site Information at Drupal's front end was still not available; but this can be achieved now by using this module.
Installation
The Site Info module is very similar to other Drupal modules. For installation of the Site Info module please follow the below mentioned steps:
- Install as usual, see https://www.drupal.org/node/1294804 for further information.
- Enable the Site Info module.
Configuration
There is no configuration for this module.
Project Page
This is the project page link for Site Info
Clone Repository
git clone --branch 7.x-1.x RahulSeth@git.drupal.org:sandbox/RahulSeth/2422343.git siteinfo
Automatic Code Review
http://pareview.sh/pareview/httpgitdrupalorgsandboxrahulseth2422343git
Difference with other projects
System Status
System Status provides an easy way to get an overview of all the available updates for your Drupal websites, security advisories and module usage.
Devel
A module containing helper functions for Drupal developers and
inquisitive admins. This module can print a log of
all database queries for each page request at the bottom of each page. The
summary includes how many times each query was executed on a page, and how long
each query took.It also offers:-
- A block for running custom PHP on a page.
- A block for quickly accessing devel pages.
- A block for masquerading as other users (useful for testing).
- Reports memory usage at bottom of page.
- A mail-system class which redirects outbound email to files.
- More.
Devel Info
General Info:-
- A block which displays general information.
- PHP Info
- A block which displays information about the current state of PHP.
- Project List.
- A block which displays list of enabled projects.
- Module List.
- A block which displays list of enabled modules sorted by module's call-up.
- Theme List.
- A block which displays list of enabled themes.
- Custom Theme.
- A block which displays list of modules which override the system default theme sorted by module's call-up.
Site Audit
Site Audit is a Drupal static site analysis platform that generates reports with
actionable best practice recommendations.
Site Audit is not a module; do not install it in your site root.
Site Audit includes a number of comprehensive reports, each consisting of one
or more checks. Site Audit reports include:-
- Best Practices - structural recommendations.
- Block - caching.
- Cache - optimal Drupal caching settings.
- Codebase - size of the site; size and count of managed files.
- Content - checks for unused content types, vocabularies.
- Cron - Drupal's built-in cron.
- Database - collation, engine, row counts, and size.
- Extensions - count, development modules, duplicates, missing.
- Insights - Analyze site with Google PageSpeed Insights.
- Status - check for failures in Drupal's built-in status report.
- Users - blocked user #1, number of normal and blocked users, list of roles.
- Views - caching settings.
- Watchdog - 404 error count, age, number of entries, enabled, PHP errors.
Site Documentation
Sorry I'm not able to use this one. avaialble for drupal 6.
Now I realised SiteInfo module is different than these modules because it provide additional information such as:
- Display numbers of roles and their name.
- Display numbers of users and their name.
- Display numbers of content types and their name.
- Number of nodes of particular content type.
- Drupal install date.
- Database name.
- Database driver.
Review of other applications :
https://www.drupal.org/node/2383329#comment-9620229
https://www.drupal.org/node/2425965#comment-9620349
https://www.drupal.org/node/2425717#comment-9620391
Comments
Comment #1
Rishi KulshreshthaComment #2
PA robot CreditAttribution: PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
yuriy.kostin CreditAttribution: yuriy.kostin commentedHi Rishi,
Automated Review
⊠ Git default branch is not set, see the documentation on setting a default branch https://www.drupal.org/node/1659588
Individual user account
☑ Follows the guidelines for individual user accounts.
No duplication
☑ Does not cause module duplication.
Master Branch
☑ Yes
Installation / Usage
⊠ Private function have missing docs https://www.drupal.org/coding-standards/docs#functions
Comment #4
Rahul Seth CreditAttribution: Rahul Seth commentedManual reviews of other projects
https://www.drupal.org/node/2383329#comment-9620229
https://www.drupal.org/node/2425965#comment-9620349
https://www.drupal.org/node/2425717#comment-9620391
Comment #5
Rahul Seth CreditAttribution: Rahul Seth commentedHi Kostin,
Thanks for the guidance, according to your review I've fixed the following issues:
Comment #6
MattDanger CreditAttribution: MattDanger commentedFor consistency, your git clone project name should be
siteinfo
instead ofsite_info
Secondly, some minor code formatting suggestions per http://pareview.sh/pareview/httpgitdrupalorgsandboxrahulseth2422343git review:
Comment #7
MattDanger CreditAttribution: MattDanger commentedComment #8
klausithe minor coding standard errors and the clone command are surely not application blockers, anything else that you found or should this be RTBC instead?
Comment #9
MattDanger CreditAttribution: MattDanger commentedI see no blockers. Manual review looks good.
Comment #10
Rahul Seth CreditAttribution: Rahul Seth commentedComment #11
Rahul Seth CreditAttribution: Rahul Seth commentedComment #12
naveenvalechaComment #13
Rishi KulshreshthaAs per #6, I've changed the git clone project name from
site_info
tositeinfo
Comment #14
dman CreditAttribution: dman commentedThis looks like a fairly basic hello-world sort of module, and doesn't add much that is not already available, in core even.
It gets some existing info from variables, then demonstrates you can put it on the screen with theme('table',...)
It's the sort of stuff you should be able to put together in the first day of following instructions to write your first Drupal 7 module. It's OK as a proof-of-concept ... but not useful as a stand-alone module to add to the existing throng. And though it's not wrong code it's not exactly a broad or a substantial demonstration of Drupal APIs.
Fully half or the items listed are already provided out-of-the-box from core on the /admin/reports/status page!
Other listings (number of content types, number of roles) are already easily accessible through the UI already, or if you wanted to report on them in one place, the thing to do would be to add an entry in the core "Status report" by implementing hook_requirements()
Pre-existing modules like this have a long history
To add any value, a module in this space should do things that are not already done, and probably try to provide a back-end, such as a machine-readable feed or api, or something that extends or improves on the cli
drush status
. Or even better, EXTEND the existing ones using their APIs to provide proper synergy.It's an incredibly softball sort of module to use as a project application. I'd much rather you built something useful for everyone to demonstrate your coding abilities.
Comment #15
Sagar Ramgade CreditAttribution: Sagar Ramgade commentedAutomated Review
Review of the 7.x-1.x branch (commit 7cebc00):
Coder Sniffer has found some issues with your code (please check the Drupal coding standards).
FILE: /var/www/drupal-7-pareview/pareview_temp/siteinfo.module
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
78 | ERROR | Return type missing for @return tag in function comment
----------------------------------------------------------------------
Time: 103ms; Memory: 7Mb
No automated test cases were found, did you consider writing Simpletests or PHPUnit tests? This is not a requirement but encouraged for professional software development.
Manual Review
Do not try to duplicate functionality because "you don't really like how it's done there". That only adds clutter. Work to improve an existing module rather than introduce yet another random module, as that leads to confusion and frustration for the development, support and end user communities.
The same feature is provided by devel module and Drupal core. Others can be achieved using views module with better flexibility
Agree with dman, sort of basic coding example.
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Overall I feel you might add additional information provided by your module as a patch to devel or other similar modules.
Comment #16
Rahul Seth CreditAttribution: Rahul Seth commentedHi Dan Morrison/Sagar,
Thanks for your comments. I used these modules as @Dan Morrison mention and I got the information which I want to share.
System Status
System Status provides an easy way to get an overview of all the available updates for your Drupal websites, security advisories and module usage.
Devel
A module containing helper functions for Drupal developers and
inquisitive admins. This module can print a log of
all database queries for each page request at the bottom of each page. The
summary includes how many times each query was executed on a page, and how long
each query took.It also offers:-
Devel Info
General Info:-
Site Audit
Site Audit is a Drupal static site analysis platform that generates reports with
actionable best practice recommendations.
Site Audit is not a module; do not install it in your site root.
Site Audit includes a number of comprehensive reports, each consisting of one
or more checks. Site Audit reports include:-
Site Documentation
Sorry I'm not able to use this one. avaialble for drupal 6.
Now I realised SiteInfo module is different than these modules because it provide additional information such as:
I admitted that SiteInfo is very simple module but it doesn't mean it is not useful. You get all information in one page.
@Sagar I fixed the issue which you mention.
Comment #17
Rahul Seth CreditAttribution: Rahul Seth commentedComment #18
naveenvalecha@Rahul Seth,
Please specify the difference on the project page and also on the issue summary page so that it will help other reviewers.
Manual Review :
The permission name 'access site information' looks more user friendly than 'access admin information'
Not Found any major security issue, major api problems,License issue.
Setting this to RTBC :)
I would recommend you, please help to review other project applications to get a
review bonus back. This will put you on the high priority list :)
Thanks to you for your hard work and patience.
P.S. : Note for me the pareview template was used earlier so not used here.
Comment #19
Rahul Seth CreditAttribution: Rahul Seth commentedThank's alot @Naveen,
As per #18, I made the changes.
Comment #20
Rahul Seth CreditAttribution: Rahul Seth commentedComment #21
naveenvalechaAdded difference w/r other projects and review of other applications in review
Comment #22
klausiSo I think this is sufficiently different to the existing projects since the scope is a bit different.
manual review:
But that are not critical application blockers, so ...
Thanks for your contribution, Rahul Seth!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #23
Rahul Seth CreditAttribution: Rahul Seth commented