Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/ns-widget-recent-comments/widget-recent-comments.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; NS_Recent_Comments_ has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.38ms] Passed 4 tests
A check of server-side resources used by NS Widget Recent Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.32 ▼32.83 |
Dashboard /wp-admin | 2.10 ▼1.24 | 6.29 ▼52.28 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.90 ▼40.44 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.53 ▼87.95 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.92 ▼28.06 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_ns-recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by NS Widget Recent Comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.36 ▼0.20 | 1.72 ▲0.28 | 44.28 ▲3.71 |
Dashboard /wp-admin | 2,195 ▲18 | 5.54 ▼0.03 | 81.25 ▼5.99 | 38.01 ▼7.23 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.02 | 34.33 ▼6.24 | 31.31 ▼9.72 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.28 ▲0.30 | 591.25 ▼22.45 | 51.19 ▲5.01 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.27 ▲0.09 | 93.79 ▼3.21 | 41.08 ▼1.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/ns-widget-recent-comments/widget-recent-comments.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; NS_Recent_Comments_ has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_ns-recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-widget-recent-comments/widget-recent-comments.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: avatar, comments, recent comments, netscripter, free...
ns-widget-recent-comments/widget-recent-comments.php 85% from 13 tests
The entry point to "NS Widget Recent Comments" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("ns-widget-recent-comments.php" instead of "widget-recent-comments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin124 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 10 | 91 |
CSS | 1 | 4 | 3 | 33 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin