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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼1.98ms] Passed 4 tests
An overview of server-side resources used by Sneakers
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 42.29 ▲0.94 |
Dashboard /wp-admin | 3.65 ▲0.34 | 52.23 ▲1.01 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 53.81 ▲0.73 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 88.93 ▼9.68 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.49 ▲0.10 |
Sneakers /wp-admin/edit.php?post_type=sneaker | 3.56 | 41.95 |
Add Sneaker /wp-admin/post-new.php?post_type=sneaker | 3.88 | 55.44 |
Server storage [IO: ▲0.62MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sneakers
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲204 | 14.45 ▲0.08 | 1.75 ▼0.06 | 67.20 ▲23.76 |
Dashboard /wp-admin | 2,362 ▲182 | 6.13 ▲0.46 | 114.03 ▲20.70 | 38.72 ▼2.05 |
Posts /wp-admin/edit.php | 2,290 ▲193 | 3.30 ▲1.28 | 53.01 ▲15.93 | 32.44 ▼2.71 |
Add New Post /wp-admin/post-new.php | 6,292 ▲4,766 | 25.98 ▲2.95 | 856.09 ▲231.50 | 47.91 ▼9.04 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.14 ▼0.09 | 82.62 ▼22.91 | 44.08 ▼3.79 |
Sneakers /wp-admin/edit.php?post_type=sneaker | 1,254 | 3.20 | 46.75 | 25.92 |
Add Sneaker /wp-admin/post-new.php?post_type=sneaker | 3,169 | 8.26 | 217.76 | 78.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- 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
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sneakers/inc/metaboxes.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sneakers/sneakers.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/sneakers/init.php:40
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
sneakers/sneakers.php 85% from 13 tests
"Sneakers" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "4.4")
- Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,285 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 532 | 751 | 1,563 |
CSS | 3 | 82 | 7 | 657 |
SVG | 1 | 0 | 0 | 414 |
XML | 1 | 8 | 16 | 344 |
JavaScript | 5 | 70 | 103 | 307 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 64.80 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 177.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 96 | 88.89% |
▷ Public methods | 100 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 7.41% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.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
15 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |