Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.57ms] Passed 4 tests
A check of server-side resources used by Comic Book Management System
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.03 ▼5.93 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.74 ▼5.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.87 ▼0.94 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.08 ▼17.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.76 ▼0.15 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
These are issues you should consider
- You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/comicbookmanagementsystemweeklypicks/" and "wp-content/uploads/"
- (new file) wp-content/cbms_weekly_picks_cover/.empty
Filesystem: 24 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cbms_weekly_picks |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Comic Book Management System
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.80 ▼0.55 | 9.25 ▲7.65 | 41.71 ▲1.88 |
Dashboard /wp-admin | 2,197 ▲20 | 5.51 ▼0.16 | 87.06 ▼1.37 | 81.92 ▲38.96 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.97 ▼0.02 | 33.83 ▼2.16 | 34.23 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,695 ▲169 | 22.26 ▼0.68 | 794.61 ▲99.50 | 61.45 ▲3.63 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.23 ▲0.01 | 94.82 ▼5.54 | 74.45 ▲29.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_cbms_weekly_picks
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_footer.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require(CBMS_WEEKLY_PICKS_PLUGIN_DIR/includes/cbms_weeklypicks_header.php): failed to open stream: No such file or directory in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_admin.php on line 2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_display_weekly_picks.php on line 3
- > PHP Warning
Use of undefined constant CBMS_WEEKLY_PICKS_PLUGIN_DIR - assumed 'CBMS_WEEKLY_PICKS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_admin.php on line 2
- > PHP Fatal error
require(): Failed opening required 'CBMS_WEEKLY_PICKS_PLUGIN_DIR/includes/cbms_weeklypicks_header.php' (include_path='.:/usr/share/php') in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_admin.php on line 2
- > PHP Warning
Use of undefined constant CBMS_WEEKLY_PICKS_PLUGIN_DIR - assumed 'CBMS_WEEKLY_PICKS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_add.php on line 2
- > PHP Fatal error
require(): Failed opening required 'CBMS_WEEKLY_PICKS_PLUGIN_DIR/includes/cbms_weeklypicks_header.php' (include_path='.:/usr/share/php') in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_add.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/comicbookmanagementsystemweeklypicks/class.cbms_weekly_picks_admin_panel.php:144
- > PHP Warning
require(CBMS_WEEKLY_PICKS_PLUGIN_DIR/includes/cbms_weeklypicks_header.php): failed to open stream: No such file or directory in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_add.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_display_weekly_picks.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/comicbookmanagementsystemweeklypicks/includes/cbms_weeklypicks_header.php:4
- > PHP Warning
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in comicbookmanagementsystemweeklypicks/assets to your readme.txt
comicbookmanagementsystemweeklypicks/CBMS_WeeklyPicks.php 85% from 13 tests
The main PHP script in "Comic Book Management System" version 2.2.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: The principal plugin file should be the same as the plugin slug ("comicbookmanagementsystemweeklypicks.php" instead of "CBMS_WeeklyPicks.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,862 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 848 |
PHP | 9 | 112 | 30 | 502 |
CSS | 2 | 55 | 2 | 316 |
JavaScript | 1 | 16 | 1 | 196 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 4 | 20.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 1.00KB | 0.99KB | ▼ 1.27% |
img/logo.png | 69.94KB | 25.39KB | ▼ 63.70% |