Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.95MB] [CPU: ▼33.43ms] Passed 4 tests
An overview of server-side resources used by Add Ribbon Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.30 ▼4.63 |
Dashboard /wp-admin | 2.99 ▼0.31 | 21.89 ▼23.97 |
Posts /wp-admin/edit.php | 2.99 ▼0.36 | 21.29 ▼26.72 |
Add New Post /wp-admin/post-new.php | 2.99 ▼2.89 | 22.69 ▼70.98 |
Media Library /wp-admin/upload.php | 2.99 ▼0.23 | 21.80 ▼12.05 |
Add Ribbon /wp-admin/tools.php?page=add_ribbon_info | 3.00 | 23.24 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
recovery_mode_email_last_sent |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Add Ribbon Shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.20 ▼1.46 | 1.66 ▼0.59 | 39.25 ▼9.72 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.17 | 100.25 ▼0.15 | 38.79 ▼2.53 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.02 | 37.00 ▼5.91 | 33.99 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.15 ▲2.24 | 688.83 ▲58.77 | 54.84 ▲3.50 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.20 ▼0.01 | 97.91 ▼5.72 | 41.17 ▼3.04 |
Add Ribbon /wp-admin/tools.php?page=add_ribbon_info | 928 | 1.14 | 6.57 | 18.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options were found after uninstall: 7 options
- recovery_mode_email_last_sent
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=add_ribbon_info
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/tools.php?page=add_ribbon_info
- > Error in wp-content/plugins/add-ribbon/templates/add_ribbon_dashboard.php+112
Uncaught Error: Class 'SherkCPTDisplays' not found in wp-content/plugins/add-ribbon/templates/add_ribbon_dashboard.php:112
Stack trace:
#0 wp-content/plugins/add-ribbon/includes/AddRibbonMenu.php(25): include()
#1 wp-includes/class-wp-hook.php(310): AddRibbonMenu->add_ribbon_menu_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/tools.php(40): require_once('/var/www/wordpr...')
#6 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/add-ribbon/includes/AddRibbonShortcode.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/add-ribbon/includes/AddRibbonShortcode.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-ribbon/includes/AddRibbonMenu.php:17
- > PHP Fatal error
Uncaught Error: Class 'SherkCPTDisplays' not found in wp-content/plugins/add-ribbon/templates/add_ribbon_dashboard.php:112
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-ribbon/includes/AddRibbonCssJsScripts.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: ribbon generator, shortcode, ribbon, cssportal ribbon
add-ribbon/add_ribbon.php 85% from 13 tests
The principal PHP file in "Add Ribbon Shortcode" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("add-ribbon.php" instead of "add_ribbon.php")
- Description: The description should be shorter than 140 characters (currently 244 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin336 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 88 | 83 | 223 |
CSS | 1 | 18 | 9 | 113 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 2 | 20.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
assets/images/logo.png | 49.81KB | 14.78KB | ▼ 70.33% |