Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.16ms] Passed 4 tests
Analyzing server-side resources used by Update Comments Count
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.33 ▼5.44 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.16 ▼5.01 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.99 ▲3.08 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.48 ▼9.47 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.33 ▼0.73 |
Update Comments Count /wp-admin/tools.php?page=update-comments-count | 3.22 | 29.89 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Update Comments Count
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.41 ▼0.87 | 1.77 ▼0.14 | 41.12 ▼4.97 |
Dashboard /wp-admin | 2,213 ▲21 | 4.84 ▼0.15 | 109.24 ▼12.44 | 38.33 ▼6.28 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.97 ▼0.05 | 39.90 ▲1.66 | 35.46 ▲0.24 |
Add New Post /wp-admin/post-new.php | 1,517 ▼9 | 17.86 ▼5.30 | 621.61 ▼60.92 | 57.29 ▲1.71 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▼0.12 | 95.50 ▼11.81 | 42.16 ▼5.39 |
Update Comments Count /wp-admin/tools.php?page=update-comments-count | 863 | 1.70 | 25.20 | 28.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/tools.php?page=update-comments-count
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/tools.php?page=update-comments-count
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
update-comments-count/update-comments-count.php Passed 13 tests
This is the main PHP file of "Update Comments Count" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
101 characters long description:
An easy way to update post comments counters, even for large sites, using WordPress standar function.
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
Good job! No executable or dangerous file extensions detected312 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 140 | 121 | 195 |
PO File | 1 | 17 | 17 | 62 |
JavaScript | 1 | 35 | 0 | 55 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 11 | 73.33% |
▷ Public methods | 5 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 66.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin