Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.68MB] [CPU: ▲4.13ms] Passed 4 tests
A check of server-side resources used by WP Mobile Menu - The Mobile-Friendly Responsive Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.32 ▲2.86 | 55.27 ▲17.13 |
Dashboard /wp-admin | 4.00 ▲0.70 | 49.02 ▲2.27 |
Posts /wp-admin/edit.php | 4.05 ▲0.70 | 48.08 ▲3.66 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.63 | 97.16 ▲0.14 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 42.54 ▲10.45 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.27 | 37.33 |
Server storage [IO: ▲4.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 282 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
fs_debug_mode |
fs_active_plugins |
fs_accounts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Mobile Menu - The Mobile-Friendly Responsive Menu: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲228 | 13.66 ▼1.08 | 7.90 ▲6.18 | 55.94 ▲18.04 |
Dashboard /wp-admin | 2,243 ▲58 | 4.87 ▼0.98 | 95.95 ▼3.95 | 44.28 ▲0.43 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 1.98 ▼0.01 | 35.34 ▼1.94 | 32.41 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,532 ▲18 | 17.57 ▲0.04 | 680.84 ▼14.90 | 53.98 ▼0.35 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.21 ▲0.04 | 98.86 ▼3.37 | 44.37 ▼0.87 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,094 | 1.72 | 22.30 | 25.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/mobile-menu/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- fs_active_plugins
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- fs_debug_mode
- widget_recent-posts
- theysaidso_admin_options
- fs_accounts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'MobileMenuOptions' not found in wp-content/plugins/mobile-menu/includes/dynamic-style.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
mobile-menu/mobmenu.php 92% from 13 tests
The principal PHP file in "WP Mobile Menu - The Mobile-Friendly Responsive Menu" v. 2.8.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mobile-menu.php" instead of "mobmenu.php")
Code Analysis 95% from 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
Good job! No executable or dangerous file extensions detected52,834 lines of code in 213 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 9,203 | 19,309 | 44,973 |
JavaScript | 16 | 622 | 663 | 3,809 |
CSS | 23 | 156 | 120 | 2,420 |
PO File | 1 | 458 | 629 | 1,023 |
Markdown | 2 | 138 | 0 | 556 |
JSON | 1 | 0 | 0 | 28 |
SVG | 2 | 0 | 0 | 25 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 61.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 98 | |
▷ Abstract classes | 2 | 2.04% |
▷ Concrete classes | 96 | 97.96% |
▷ Final classes | 0 | 0.00% |
Methods | 1,700 | |
▷ Static methods | 212 | 12.47% |
▷ Public methods | 1,114 | 65.53% |
▷ Protected methods | 198 | 11.65% |
▷ Private methods | 388 | 22.82% |
Functions | 105 | |
▷ Named functions | 105 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 152 | |
▷ Global constants | 101 | 66.45% |
▷ Class constants | 51 | 33.55% |
▷ Public constants | 51 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.47MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 6.58KB | 3.48KB | ▼ 47.18% |
includes/demo-content/assets/freedemo-mobile-menu.png | 50.94KB | 15.75KB | ▼ 69.08% |
includes/demo-content/assets/prodemo-mobile-menu.png | 147.69KB | 42.46KB | ▼ 71.25% |
includes/assets/right-menu-icon.png | 0.39KB | 0.27KB | ▼ 31.17% |
includes/assets/left-menu-icon.png | 0.40KB | 0.27KB | ▼ 32.84% |