Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.24ms] Passed 4 tests
A check of server-side resources used by Blurry - Mobile menu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 44.08 ▼1.36 |
Dashboard /wp-admin | 3.42 ▲0.11 | 54.48 ▲4.21 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.26 ▲0.81 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 90.29 ▼12.03 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.54 ▲3.64 |
Blurry Mobile Nav /wp-admin/options-general.php?page=blurry-options | 3.31 | 31.76 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Blurry - Mobile menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲191 | 13.48 ▼0.49 | 10.25 ▲8.51 | 42.29 ▼3.84 |
Dashboard /wp-admin | 2,202 ▲25 | 5.65 ▼0.01 | 91.51 ▼3.75 | 44.12 ▲1.39 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.97 ▼0.07 | 35.56 ▼4.42 | 33.81 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.41 ▲0.41 | 695.92 ▲45.45 | 65.50 ▲5.29 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▼0.02 | 105.16 ▲1.29 | 44.23 ▼2.22 |
Blurry Mobile Nav /wp-admin/options-general.php?page=blurry-options | 1,975 | 2.86 | 56.93 | 56.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=blurry-options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=blurry-options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/blurry-mobile-menu/blurry.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: options in wp-content/plugins/blurry-mobile-menu/blurry.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/blurry-mobile-menu/options-page.php:43
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/blurry-mobile-menu/blurry.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/blurry-mobile-menu/main.php:16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/blurry-mobile-menu/blurry.php on line 80
- > PHP Notice
Undefined variable: options in wp-content/plugins/blurry-mobile-menu/blurry.php on line 80
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/blurry-mobile-menu/blurry.php on line 57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blurry-mobile-menu/settings.php:3
- > PHP Notice
Undefined variable: options in wp-content/plugins/blurry-mobile-menu/blurry.php on line 57
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
blurry-mobile-menu/main.php 85% from 13 tests
The main PHP file in "Blurry - Mobile menu" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("blurry-mobile-menu.php" instead of "main.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 plugin6,811 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 417 | 78 | 2,815 |
JavaScript | 5 | 663 | 252 | 2,727 |
PHP | 4 | 196 | 34 | 818 |
SVG | 1 | 0 | 0 | 414 |
PO File | 1 | 9 | 21 | 37 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 34 | |
▷ Named functions | 34 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/menu-shadows.png | 10.48KB | 5.38KB | ▼ 48.62% |
img/sprite.png | 6.40KB | 2.95KB | ▼ 54.00% |
img/alpha10.png | 0.98KB | 0.10KB | ▼ 90.02% |
img/alpha50.png | 0.91KB | 0.09KB | ▼ 89.64% |
img/separator1-2x.png | 0.96KB | 0.48KB | ▼ 49.59% |