Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.64ms] Passed 4 tests
This is a short check of server-side resources used by EU tyre label shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.04 ▲0.47 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.21 ▼0.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 42.82 ▼6.97 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.78 ▼9.32 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.44 ▼2.17 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by EU tyre label shortcode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.10 ▼0.34 | 1.78 ▲0.18 | 43.10 ▲3.23 |
Dashboard /wp-admin | 2,192 ▲18 | 5.48 ▼0.06 | 80.90 ▼7.72 | 37.32 ▼1.98 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.95 ▼0.07 | 36.91 ▼5.01 | 34.53 ▼3.90 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.31 ▲0.27 | 647.32 ▼13.80 | 53.28 ▼10.04 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.22 ▼0.05 | 97.77 ▼17.14 | 40.18 ▼7.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/eu-tyre-label-shortcode/php/get-eu-tyre-label.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: size in wp-content/plugins/eu-tyre-label-shortcode/php/get-eu-tyre-label.php on line 32
- > PHP Notice
Undefined index: noise in wp-content/plugins/eu-tyre-label-shortcode/php/get-eu-tyre-label.php on line 26
- > PHP Notice
Undefined index: db in wp-content/plugins/eu-tyre-label-shortcode/php/get-eu-tyre-label.php on line 29
- > PHP Notice
Undefined index: grip in wp-content/plugins/eu-tyre-label-shortcode/php/get-eu-tyre-label.php on line 24
- > PHP Notice
Undefined index: fuel in wp-content/plugins/eu-tyre-label-shortcode/php/get-eu-tyre-label.php on line 21
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3, #4 in eu-tyre-label-shortcode/assets to your readme.txt
eu-tyre-label-shortcode/eu-tyre-label.php 85% from 13 tests
The main PHP file in "EU tyre label shortcode" ver. 1.0.20170920 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 180 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("eu-tyre-label-shortcode.php" instead of "eu-tyre-label.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin201 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 45 | 52 | 144 |
JavaScript | 1 | 6 | 2 | 57 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/mce/mce-button-eutl-16.png | 0.59KB | 0.50KB | ▼ 15.44% |
images/image-label-marker.png | 0.41KB | 0.38KB | ▼ 8.73% |
images/image-db-1.png | 1.62KB | 1.88KB | 0.00% |
images/image-db-3.png | 1.42KB | 1.70KB | 0.00% |
images/image-label-blank.png | 22.55KB | 10.15KB | ▼ 55.00% |