Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.82ms] Passed 4 tests
Analyzing server-side resources used by Fox009 Recent Comments Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.65 ▲2.44 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.31 ▼1.96 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.30 ▼2.00 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.24 ▼5.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.28 ▲2.30 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_fox009_recent_comments_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Fox009 Recent Comments Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.67 ▼0.70 | 1.74 ▲0.07 | 43.39 ▼5.83 |
Dashboard /wp-admin | 2,206 ▲18 | 5.81 ▲0.94 | 107.10 ▼8.81 | 41.71 ▼1.74 |
Posts /wp-admin/edit.php | 2,089 ▲18 | 1.97 ▼0.08 | 37.75 ▲1.95 | 34.39 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.65 ▼5.55 | 703.19 ▲16.98 | 49.30 ▼12.32 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.04 | 94.72 ▼20.84 | 42.82 ▼5.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_fox009_recent_comments_widget
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/fox009-recent-comments-widget/includes/select_options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/fox009-recent-comments-widget/includes/widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/fox009-recent-comments-widget/includes/form.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fox009-recent-comments-widget/fox009-comments-widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
5 plugin tags: recent comments, comments, fox009, widget, avatar
fox009-recent-comments-widget/fox009-comments-widget.php 92% from 13 tests
Analyzing the main PHP file in "Fox009 Recent Comments Widget" version 1.0.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fox009-recent-comments-widget.php" instead of "fox009-comments-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected507 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 38 | 8 | 437 |
CSS | 1 | 11 | 0 | 50 |
JavaScript | 1 | 3 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 50.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin