Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▲2.20ms] Passed 4 tests
This is a short check of server-side resources used by Mobile Menu CK
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 48.77 ▲5.93 |
Dashboard /wp-admin | 3.48 ▲0.16 | 59.28 ▲8.64 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 54.17 ▼0.33 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 97.18 ▲3.76 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.79 ▼0.56 |
Add new menu /wp-admin/admin.php?page=mobilemenuck_edit_menu | 3.56 | 44.02 |
All menus /wp-admin/admin.php?page=mobilemenuck_general | 3.56 | 39.35 |
All styles /wp-admin/admin.php?page=mobilemenuck_styles | 3.56 | 39.46 |
Add new style /wp-admin/admin.php?page=mobilemenuck_edit_style | 3.56 | 39.15 |
Server storage [IO: ▲2.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 397 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_mobilemenuck_styles |
wp_mobilemenuck_menus |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mobile Menu CK
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲182 | 15.06 ▲1.48 | 1.84 ▲0.03 | 41.75 ▼5.44 |
Dashboard /wp-admin | 2,362 ▲156 | 6.43 ▲0.51 | 140.69 ▲29.24 | 86.56 ▲43.82 |
Posts /wp-admin/edit.php | 2,286 ▲194 | 3.36 ▲1.33 | 46.41 ▲5.93 | 70.26 ▲29.44 |
Add New Post /wp-admin/post-new.php | 1,535 ▼2 | 22.59 ▼0.55 | 598.03 ▼121.27 | 29.50 ▼33.72 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.17 ▼0.04 | 79.63 ▼26.76 | 85.18 ▲39.67 |
Add new menu /wp-admin/admin.php?page=mobilemenuck_edit_menu | 1,259 | 3.27 | 50.93 | 79.13 |
All menus /wp-admin/admin.php?page=mobilemenuck_general | 1,198 | 3.13 | 44.15 | 85.73 |
All styles /wp-admin/admin.php?page=mobilemenuck_styles | 1,031 | 3.12 | 38.84 | 62.90 |
Add new style /wp-admin/admin.php?page=mobilemenuck_edit_style | 1,031 | 3.17 | 42.27 | 64.30 |
Uninstaller [IO: ✅] [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 does not fully uninstall, leaving 2 tables in the database
- wp_mobilemenuck_styles
- wp_mobilemenuck_menus
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mobilemenuck_edit_style
- > Deprecated in wp-content/plugins/mobile-menu-ck/helpers/ckpath.php+150
Array and string offset access syntax with curly braces is deprecated
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 items
- 10× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mobile-menu-ck/views/about/view.html.php
- > /wp-content/plugins/mobile-menu-ck/views/style/tmpl/default_mainmenu.php
- > /wp-content/plugins/mobile-menu-ck/interfaces/stylescss.php
- > /wp-content/plugins/mobile-menu-ck/interfaces/itemsselection.php
- > /wp-content/plugins/mobile-menu-ck/views/about/tmpl/default.php
- > /wp-content/plugins/mobile-menu-ck/interfaces/columnsmanager.php
- > /wp-content/plugins/mobile-menu-ck/interfaces/rendercss.php
- > /wp-content/plugins/mobile-menu-ck/interfaces/loaditemoptions.php
- > /wp-content/plugins/mobile-menu-ck/interfaces/_loaditem.php
- > /wp-content/plugins/mobile-menu-ck/interfaces/loaditem.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Mobilemenuck\\CKListTable' not found in wp-content/plugins/mobile-menu-ck/helpers/cklisttablemenu.php:18
- > PHP Fatal error
Uncaught Error: Class 'Mobilemenuck\\CKListTable' not found in wp-content/plugins/mobile-menu-ck/helpers/cklisttablestyle.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=mobilemenuck_edit_menu
- > Network (severe)
wp-content/plugins/mobile-menu-ck/assets/fields/radio.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=mobilemenuck_edit_menu
- > Network (severe)
wp-content/plugins/mobile-menu-ck/assets/fields/color.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=mobilemenuck_edit_menu
- > Network (severe)
wp-content/plugins/mobile-menu-ck/assets/fields/media.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: addons, menu, plugins, mobile
mobile-menu-ck/mobile-menu-ck.php Passed 13 tests
The main file in "Mobile Menu CK" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Mobile Menu CK is the perfect solution to create your mobile menus.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/mobile-menu-ck/assets/jscolor/Demos of JSColor.URL
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 2,560 | 3,754 | 8,639 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 3 | 233 | 163 | 1,801 |
PO File | 1 | 1,137 | 2,302 | 1,760 |
CSS | 12 | 189 | 80 | 1,396 |
JSON | 11 | 0 | 0 | 11 |
HTML | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 272)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 32.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 339.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 272.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 1 | 2.38% |
▷ Concrete classes | 41 | 97.62% |
▷ Final classes | 0 | 0.00% |
Methods | 409 | |
▷ Static methods | 108 | 26.41% |
▷ Public methods | 368 | 89.98% |
▷ Protected methods | 27 | 6.60% |
▷ Private methods | 14 | 3.42% |
Functions | 13 | |
▷ Named functions | 9 | 69.23% |
▷ Anonymous functions | 4 | 30.77% |
Constants | 50 | |
▷ Global constants | 41 | 82.00% |
▷ Class constants | 9 | 18.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
265 compressed PNG files occupy 0.23MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/file_audio.png | 0.64KB | 0.68KB | 0.00% |
images/fondheader.png | 0.20KB | 0.37KB | 0.00% |
presets/prototype/preview.png | 4.79KB | 2.53KB | ▼ 47.19% |
images/interface/layout-select.png | 0.39KB | 0.43KB | 0.00% |
images/plus.png | 0.45KB | 0.44KB | ▼ 1.96% |