Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/unite-mobile-optimizer-menu/unite-mobile-optimizer-menu.php+14
Only variables should be passed by reference
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.30ms] Passed 4 tests
Analyzing server-side resources used by Unite Mobile Optimizer Menu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.24 ▼36.13 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.71 ▼38.80 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.31 ▼49.26 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.52 ▼85.00 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.06 ▼34.15 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Unite Mobile Optimizer Menu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲179 | 13.53 ▼1.03 | 9.42 ▲7.49 | 49.50 ▲2.29 |
Dashboard /wp-admin | 2,224 ▲53 | 5.63 ▼0.07 | 87.52 ▼3.85 | 76.77 ▲33.60 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 2.07 ▲0.04 | 35.68 ▼1.21 | 33.18 ▼3.35 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 23.25 ▲1.96 | 759.64 ▲75.31 | 60.94 ▲8.82 |
Media Library /wp-admin/upload.php | 1,423 ▲29 | 4.18 ▼0.01 | 100.68 ▼10.63 | 76.78 ▲31.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/unite-mobile-optimizer-menu/unite-mobile-optimizer-menu.php+14
Only variables should be passed by reference
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/unite-mobile-optimizer-menu/template/css.php
- > /wp-content/plugins/unite-mobile-optimizer-menu/template/menu.php
- 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: link5_enable in wp-content/plugins/unite-mobile-optimizer-menu/template/menu.php on line 22
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/unite-mobile-optimizer-menu/lib/class.umom-menu.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/unite-mobile-optimizer-menu/template/settings.php:2
- > PHP Notice
Undefined variable: link1_enable in wp-content/plugins/unite-mobile-optimizer-menu/template/menu.php on line 10
- > PHP Notice
Undefined variable: icon_color in wp-content/plugins/unite-mobile-optimizer-menu/template/css.php on line 142
- > PHP Notice
Undefined variable: background_color in wp-content/plugins/unite-mobile-optimizer-menu/template/css.php on line 95
- > PHP Notice
Undefined variable: background_color in wp-content/plugins/unite-mobile-optimizer-menu/template/css.php on line 47
- > PHP Notice
Undefined variable: link2_enable in wp-content/plugins/unite-mobile-optimizer-menu/template/menu.php on line 13
- > PHP Notice
Undefined variable: mediaqueries in wp-content/plugins/unite-mobile-optimizer-menu/template/css.php on line 198
- > PHP Notice
Undefined variable: icon_color in wp-content/plugins/unite-mobile-optimizer-menu/template/css.php on line 66
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== unite-mobile-optimizer-menu ===
) - Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
unite-mobile-optimizer-menu/unite-mobile-optimizer-menu.php 92% from 13 tests
The main PHP file in "Unite Mobile Optimizer Menu" ver. 1.0 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 don't use more than 140 characters for the plugin description (currently 158 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 plugin4,351 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 30 | 39 | 2,582 |
CSS | 2 | 0 | 9 | 1,337 |
SVG | 1 | 0 | 0 | 414 |
JavaScript | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.98 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
6 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/trigger.png | 1.37KB | 0.88KB | ▼ 36.27% |
screenshot-1.png | 43.06KB | 18.73KB | ▼ 56.49% |
screenshot-2.png | 32.26KB | 12.91KB | ▼ 59.98% |
images/gradient.png | 13.41KB | 8.33KB | ▼ 37.90% |
images/rainbow.png | 2.64KB | 1.74KB | ▼ 34.05% |