Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▲0.46ms] Passed 4 tests
Server-side resources used by WP MMenu Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.51 ▼2.74 |
Dashboard /wp-admin | 3.47 ▲0.16 | 44.97 ▲1.04 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.05 ▲5.72 |
Add New Post /wp-admin/post-new.php | 5.88 ▼0.00 | 93.80 ▲3.92 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.66 ▼0.38 |
Mobile Menu Lite /wp-admin/options-general.php?page=mmenu_options_lite | 3.42 | 34.99 |
Server storage [IO: ▲3.11MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/wp-mmenu-lite/" and "wp-content/uploads/"
- (new file) wp-content/redux/.empty
Filesystem: 259 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
mmenulite |
redux-framework-tracking |
mmenulite-transients |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP MMenu Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲153 | 13.69 ▼0.69 | 9.06 ▲7.36 | 40.88 ▼4.19 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.96 | 99.31 ▼4.14 | 37.85 ▼6.96 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▼0.00 | 39.80 ▲5.22 | 36.43 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 22.96 ▼0.14 | 589.25 ▼84.18 | 53.66 ▼2.49 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.02 | 98.45 ▼9.85 | 42.64 ▼1.27 |
Mobile Menu Lite /wp-admin/options-general.php?page=mmenu_options_lite | 1,405 | 4.04 | 70.91 | 38.75 |
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: 9 options
- widget_theysaidso_widget
- widget_recent-posts
- mmenulite-transients
- can_compress_scripts
- redux-framework-tracking
- db_upgraded
- mmenulite
- 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
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-mmenu-lite/admin/redux-framework/bin/makepot/pot-ext-meta.php
- > /wp-content/plugins/wp-mmenu-lite/admin/redux-framework/bin/makepot/index.php
- > /wp-content/plugins/wp-mmenu-lite/admin/redux-framework/bin/makepot/not-gettexted.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-mmenu-lite/admin/redux-framework/tests/test-sample.php:3
- > PHP Fatal error
require(): Failed opening required 'wp-content/bootstrap.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-mmenu-lite/admin/redux-framework/bootstrap_tests.php on line 27
- > PHP Warning
require_once(/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-mmenu-lite/admin/redux-framework/tests/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-mmenu-lite/admin/redux-framework/ReduxCore/inc/fields/select/elusive-icons.php:312
- > PHP Warning
require(wp-content/bootstrap.php): failed to open stream: No such file or directory in wp-content/plugins/wp-mmenu-lite/admin/redux-framework/bootstrap_tests.php on line 27
- > PHP Fatal error
require_once(): Failed opening required '/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-mmenu-lite/admin/redux-framework/tests/bootstrap.php on line 14
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: mmenu, app menu, mobile menu, menu, jquery menu
wp-mmenu-lite/mmenu-lite.php 92% from 13 tests
The main file in "WP MMenu Lite" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-mmenu-lite.php" instead of "mmenu-lite.php")
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
No dangerous file extensions were detected25,529 lines of code in 176 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 62 | 2,133 | 3,651 | 9,104 |
JavaScript | 71 | 1,736 | 1,582 | 8,487 |
CSS | 16 | 385 | 145 | 3,441 |
LESS | 8 | 281 | 177 | 2,807 |
Markdown | 4 | 272 | 0 | 888 |
SVG | 1 | 0 | 0 | 309 |
Bourne Shell | 5 | 68 | 48 | 159 |
XML | 2 | 1 | 0 | 104 |
JSON | 3 | 0 | 0 | 98 |
Sass | 3 | 1 | 0 | 72 |
HTML | 1 | 8 | 0 | 60 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 29.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 754.00 |
Average method complexity | 5.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 56 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 400 | |
▷ Static methods | 64 | 16.00% |
▷ Public methods | 382 | 95.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 4.50% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 4 | 30.77% |
▷ Class constants | 9 | 69.23% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
36 PNG files occupy 0.19MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/redux-framework/sample/patterns/tree_bark.png | 41.37KB | 43.65KB | 0.00% |
admin/redux-framework/ReduxCore/assets/img/2cr.png | 2.92KB | 0.24KB | ▼ 91.69% |
admin/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 4.67% |
admin/redux-framework/ReduxCore/assets/img/1c.png | 0.13KB | 0.13KB | ▼ 0.72% |
admin/redux-framework/sample/patterns/triangular_@2X.png | 0.21KB | 0.25KB | 0.00% |