Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼4.95ms] Passed 4 tests
This is a short check of server-side resources used by Better Recent Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 43.15 ▲0.11 |
Dashboard /wp-admin | 3.56 ▲0.22 | 46.78 ▼18.61 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 52.05 ▲7.95 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 87.64 ▼4.32 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 36.58 ▲3.02 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 108 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_better_recent_comments |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Better Recent Comments: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲70 | 14.20 ▼0.15 | 1.95 ▲0.10 | 38.28 ▼5.90 |
Dashboard /wp-admin | 2,192 ▲17 | 5.55 ▼0.14 | 89.93 ▼25.91 | 39.97 ▼5.50 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.02 | 37.46 ▼1.55 | 35.42 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.97 ▼0.25 | 662.24 ▼14.03 | 57.86 ▲6.96 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.17 ▼0.02 | 112.12 ▲12.60 | 52.83 ▲8.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_better_recent_comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 34× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Better_Recent_Comments\\Dependencies\\Lib\\Registerable' not found in wp-content/plugins/better-recent-comments/dependencies/barn2/barn2-lib/src/Rest/Base_Server.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Better_Recent_Comments\\Dependencies\\Lib\\Plugin\\Plugin' not found in wp-content/plugins/better-recent-comments/dependencies/barn2/barn2-lib/src/Plugin/Licensed_Plugin.php:16
- > PHP Warning
include(vendor/barn2/barn2-lib/.scoper.inc.php): failed to open stream: No such file or directory in wp-content/plugins/better-recent-comments/.scoper.inc.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Barn2\\Plugin\\Better_Recent_Comments\\Dependencies\\Lib\\Admin\\Abstract_Plugin_Promo' not found in wp-content/plugins/better-recent-comments/dependencies/barn2/barn2-lib/src/Admin/Plugin_Promo.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Better_Recent_Comments\\Dependencies\\Setup_Wizard\\Interfaces\\Pluggable' not found in wp-content/plugins/better-recent-comments/dependencies/barn2/setup-wizard/src/Step.php:15
- > PHP Fatal error
Uncaught Error: Class 'Barn2\\Plugin\\Better_Recent_Comments\\Dependencies\\Lib\\Plugin\\Simple_Plugin' not found in wp-content/plugins/better-recent-comments/dependencies/barn2/barn2-lib/src/Plugin/Premium_Plugin.php:20
- > PHP Fatal error
Uncaught Error: Class 'Barn2\\Plugin\\Better_Recent_Comments\\Dependencies\\Setup_Wizard\\Step' not found in wp-content/plugins/better-recent-comments/dependencies/barn2/setup-wizard/src/Steps/Welcome.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_lib_scoper_config() in wp-content/plugins/better-recent-comments/.scoper.inc.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Better_Recent_Comments\\Dependencies\\Lib\\Plugin\\Plugin' not found in wp-content/plugins/better-recent-comments/dependencies/barn2/barn2-lib/src/Plugin/Simple_Plugin.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Better_Recent_Comments\\Dependencies\\Lib\\Registerable' not found in wp-content/plugins/better-recent-comments/dependencies/barn2/barn2-lib/src/Admin/Settings_Scripts.php:16
- > PHP Fatal error
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 93% 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 require attention:
- Screenshots: A description for screenshot #2 is missing in better-recent-comments/assets to your readme.txt
better-recent-comments/better-recent-comments.php 92% from 13 tests
Analyzing the main PHP file in "Better Recent Comments" version 1.1.9
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)
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
Everything looks great! No dangerous files found in this plugin6,470 lines of code in 98 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 83 | 384 | 3,195 | 5,515 |
CSS | 6 | 20 | 17 | 455 |
JavaScript | 4 | 28 | 34 | 217 |
PO File | 3 | 61 | 81 | 205 |
JSON | 2 | 0 | 0 | 78 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 20 | |
Traits | 2 | |
Classes | 49 | |
▷ Abstract classes | 5 | 10.20% |
▷ Concrete classes | 44 | 89.80% |
▷ Final classes | 1 | 2.27% |
Methods | 527 | |
▷ Static methods | 114 | 21.63% |
▷ Public methods | 461 | 87.48% |
▷ Protected methods | 7 | 1.33% |
▷ Private methods | 59 | 11.20% |
Functions | 12 | |
▷ Named functions | 5 | 41.67% |
▷ Anonymous functions | 7 | 58.33% |
Constants | 21 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 21 | 100.00% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin