Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼0.21ms] Passed 4 tests
A check of server-side resources used by Plugin Name: Fantastic Restaurant Menu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 45.21 ▲4.24 |
Dashboard /wp-admin | 3.54 ▲0.23 | 48.27 ▼2.62 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 45.38 ▼1.29 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 86.64 ▼1.15 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.08 ▲4.57 |
All Restaurant Menus /wp-admin/edit.php?post_type=fantasticmenu_menu | 3.50 | 37.13 |
Add New /wp-admin/post-new.php?post_type=fantasticmenu_menu | 3.49 | 41.79 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
fwl-restaurant-menu-plugin-mode |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Plugin Name: Fantastic Restaurant Menu: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲120 | 13.32 ▼1.06 | 1.91 ▲0.07 | 45.14 ▲0.14 |
Dashboard /wp-admin | 2,233 ▲48 | 5.90 ▼0.01 | 109.84 ▼6.44 | 44.86 ▲2.24 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.03 ▼0.02 | 36.23 ▲2.20 | 32.81 ▼1.56 |
Add New Post /wp-admin/post-new.php | 1,537 ▲1 | 17.49 ▼5.76 | 673.70 ▼6.16 | 58.48 ▲6.90 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.22 ▲0.01 | 106.01 ▼7.97 | 46.52 ▼2.44 |
All Restaurant Menus /wp-admin/edit.php?post_type=fantasticmenu_menu | 1,080 | 1.93 | 35.22 | 32.18 |
Add New /wp-admin/post-new.php?post_type=fantasticmenu_menu | 3,364 | 5.15 | 97.51 | 153.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=fantasticmenu_menu
- > Warning in wp-content/plugins/fantastic-restaurant-menu/include/class_restaurantmenu.php+207
count(): Parameter must be an array or an object that implements Countable
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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fantastic-restaurant-menu/menu-plus-plugin.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fantastic-restaurant-menu/include/add_posttype.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fantastic-restaurant-menu/include/metabox.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fantastic-restaurant-menu/include/admin.php:4
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% 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:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== Plugin Name: Fantastic Restaurant Menu===
) - Contributors: Plugin contributors not specified
fantastic-restaurant-menu/menu-plus-plugin.php 77% from 13 tests
"Plugin Name: Fantastic Restaurant Menu" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fantastic-restaurant-menu.php" instead of "menu-plus-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected5,629 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 431 | 287 | 2,069 |
CSS | 8 | 149 | 55 | 1,620 |
PHP | 10 | 379 | 134 | 1,248 |
SVG | 1 | 0 | 0 | 685 |
JSON | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 37.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 5.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 21 | 84.00% |
▷ Public methods | 18 | 72.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 28.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.41KB | 0.15KB | ▼ 62.44% |
resources/css/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.30KB | 0.15KB | ▼ 49.68% |
resources/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
resources/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
resources/css/images/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |