Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/friendly-menu-for-mobile/includes/wp-friendly-menu-mobile-functions.php+9
Use of undefined constant enable - assumed 'enable' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.94MB] [CPU: ▼51.26ms] Passed 4 tests
This is a short check of server-side resources used by Friendly Menu for Mobile
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 5.27 ▼33.43 |
Dashboard /wp-admin | 2.06 ▼1.24 | 6.48 ▼39.74 |
Posts /wp-admin/edit.php | 2.06 ▼1.29 | 7.17 ▼41.48 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.82 | 7.14 ▼90.37 |
Media Library /wp-admin/upload.php | 2.06 ▼1.16 | 7.71 ▼27.33 |
Friendly Menu for Mobile /wp-admin/admin.php?page=dewp-fmm-admin-settings | 2.06 | 6.14 |
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu | 2.06 | 8.39 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Friendly Menu for Mobile
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.18 ▼1.19 | 1.63 ▼0.09 | 40.57 ▼0.47 |
Dashboard /wp-admin | 2,231 ▲43 | 5.85 ▲0.79 | 105.08 ▼4.30 | 50.19 ▲7.80 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.02 ▲0.01 | 39.39 ▼1.44 | 37.48 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,549 ▲29 | 23.03 ▼0.31 | 667.46 ▼2.60 | 46.52 ▼9.74 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.17 ▼0.02 | 93.65 ▼13.40 | 43.24 ▼3.42 |
Friendly Menu for Mobile /wp-admin/admin.php?page=dewp-fmm-admin-settings | 1,022 | 2.02 | 24.22 | 30.37 |
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu | 802 | 2.05 | 24.65 | 29.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/friendly-menu-for-mobile/includes/wp-friendly-menu-mobile-functions.php+9
Use of undefined constant enable - assumed 'enable' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=desparza-menu
- > Warning in wp-content/plugins/friendly-menu-for-mobile/includes/wp-friendly-menu-mobile-functions.php+9
Use of undefined constant enable - assumed 'enable' (this will throw an Error in a future version of PHP)
- 22 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=desparza-menu
- > Notice in wp-content/plugins/friendly-menu-for-mobile/includes/wp-friendly-menu-mobile-functions.php+9
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/friendly-menu-for-mobile/wp-friendly-menu-mobile.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: dewp_options in wp-content/plugins/friendly-menu-for-mobile/includes/wp-friendly-menu-mobile-functions.php on line 9
- > PHP Warning
Use of undefined constant enable - assumed 'enable' (this will throw an Error in a future version of PHP) in wp-content/plugins/friendly-menu-for-mobile/includes/wp-friendly-menu-mobile-functions.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/friendly-menu-for-mobile/includes/wp-friendly-menu-mobile-admin.php:11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/friendly-menu-for-mobile/includes/wp-friendly-menu-mobile-functions.php on line 9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Requires php: Invalid plugin version format
friendly-menu-for-mobile/wp-friendly-menu-mobile.php 85% from 13 tests
The primary PHP file in "Friendly Menu for Mobile" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 215 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("friendly-menu-for-mobile.php" instead of "wp-friendly-menu-mobile.php")
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
Success! There were no dangerous files found in this plugin251 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 45 | 35 | 234 |
CSS | 2 | 2 | 2 | 15 |
JavaScript | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 8 | |
▷ Named functions | 8 | 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
No PNG files were detected