Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.13ms] Passed 4 tests
Analyzing server-side resources used by WP Comment Stats
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.97 ▼1.68 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.33 ▼2.89 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 63.50 ▲6.78 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 101.38 ▲2.73 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.80 ▲1.33 |
WP Comment Stats /wp-admin/edit-comments.php?page=commentstatslist | 3.25 | 29.59 |
All Comments /wp-admin/edit-comments.php | 3.30 | 39.54 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Comment Stats
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,217 ▲446 | 13.19 ▼1.40 | 1.96 ▼0.03 | 41.21 ▼0.48 |
Dashboard /wp-admin | 2,598 ▲413 | 5.04 ▲0.15 | 103.53 ▼8.65 | 41.21 ▼1.68 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.04 ▲0.01 | 44.30 ▲2.19 | 54.24 ▲17.47 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 23.11 ▲0.02 | 609.94 ▼43.49 | 56.54 ▼7.71 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.29 ▲0.13 | 101.77 ▼10.72 | 43.44 ▼3.15 |
WP Comment Stats /wp-admin/edit-comments.php?page=commentstatslist | 1,198 | 2.03 | 24.60 | 52.32 |
All Comments /wp-admin/edit-comments.php | 1,811 | 2.28 | 34.79 | 34.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit-comments.php?page=commentstatslist
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php?page=commentstatslist
- > Notice in wp-admin/includes/class-wp-list-table.php+1615
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-comment-stats/views/widget/widget-stats-weekly.php
- > /wp-content/plugins/wp-comment-stats/trunk/views/widget/widget-stats-weekly.php
- > /wp-content/plugins/wp-comment-stats/views/widget/widget-stats-yearly.php
- > /wp-content/plugins/wp-comment-stats/trunk/views/widget/widget-stats-yearly.php
- > /wp-content/plugins/wp-comment-stats/views/widget/widget-stats-monthly.php
- > /wp-content/plugins/wp-comment-stats/trunk/views/widget/widget-stats-monthly.php
- 36× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-comment-stats/views/widget/widget-stats-yearly.php on line 3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-comment-stats/trunk/views/widget/widget-stats-yearly.php on line 13
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-comment-stats/trunk/views/widget/widget-stats-weekly.php on line 3
- > PHP Notice
Undefined variable: comment_counts in wp-content/plugins/wp-comment-stats/trunk/views/widget/widget-stats-monthly.php on line 13
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-comment-stats/trunk/views/widget/widget-stats-yearly.php on line 3
- > PHP Notice
Undefined variable: comment_counts in wp-content/plugins/wp-comment-stats/trunk/views/widget/widget-stats-monthly.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-comment-stats/wp-comment-stats.php on line 23
- > PHP Notice
Undefined variable: total_height in wp-content/plugins/wp-comment-stats/views/widget/widget-stats-yearly.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-comment-stats/trunk/views/widget/widget-stats-monthly.php on line 3
- > PHP Notice
Undefined variable: comment_counts in wp-content/plugins/wp-comment-stats/views/widget/widget-stats-weekly.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: stats, dashboard comment stats, comments
wp-comment-stats/wp-comment-stats.php Passed 13 tests
The entry point to "WP Comment Stats" version 1.0.3 is a PHP file that has certain tags in its header comment area
63 characters long description:
Shows the comments statistics breakdown plus a dashboard output
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin412 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 91 | 70 | 368 |
CSS | 2 | 0 | 2 | 44 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin