Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.65ms] Passed 4 tests
This is a short check of server-side resources used by Restaurant Menu Cart
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.17 ▼7.89 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.18 ▲0.17 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 52.49 ▼0.44 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.89 ▼18.44 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.19 ▲1.41 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Restaurant Menu Cart
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.18 | 2.06 ▲0.28 | 45.08 ▼2.38 |
Dashboard /wp-admin | 2,203 ▲15 | 4.85 ▼0.96 | 103.57 ▼16.81 | 43.01 ▼10.00 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.15 ▲0.14 | 35.39 ▼6.13 | 35.77 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.58 ▼5.40 | 735.87 ▲30.48 | 60.75 ▲5.55 |
Media Library /wp-admin/upload.php | 1,379 ▼9 | 4.20 ▼0.01 | 97.50 ▼6.80 | 44.32 ▼0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'mprm_menu_cart\\classes\\Core' not found in wp-content/plugins/mprm-menu-cart/classes/class-model.php:7
- > PHP Fatal error
Uncaught Error: Class 'mprm_menu_cart\\classes\\Core' not found in wp-content/plugins/mprm-menu-cart/classes/class-controller.php:7
- > PHP Fatal error
Uncaught Error: Class 'mprm_menu_cart\\classes\\Model' not found in wp-content/plugins/mprm-menu-cart/classes/models/class-settings.php:11
- > PHP Fatal error
Uncaught Error: Class 'mp_restaurant_menu\\classes\\Core' not found in wp-content/plugins/mprm-menu-cart/classes/class-core.php:12
- > PHP Fatal error
Uncaught Error: Class 'mprm_menu_cart\\classes\\Model' not found in wp-content/plugins/mprm-menu-cart/classes/models/class-menu-cart.php:9
- > PHP Fatal error
Uncaught Error: Class 'mp_restaurant_menu\\classes\\View' not found in wp-content/plugins/mprm-menu-cart/classes/class-view.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mprm-menu-cart/templates/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: restaurant, food, restaurant menu, cafe, food menu...
mprm-menu-cart/mprm-menu-cart.php Passed 13 tests
The main file in "Restaurant Menu Cart" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Displays a shopping cart of Restaurant Menu plugin in your menu bar.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,140 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 216 | 444 | 967 |
LESS | 2 | 6 | 0 | 126 |
JavaScript | 2 | 5 | 1 | 24 |
SVG | 1 | 0 | 0 | 21 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 18.78 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 9 | 12.16% |
▷ Public methods | 73 | 98.65% |
▷ Protected methods | 1 | 1.35% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin