Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼5.83ms] Passed 4 tests
Server-side resources used by Responsive Menu Card | Price List Items
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 43.82 ▼1.99 |
Dashboard /wp-admin | 3.45 ▲0.15 | 47.03 ▼10.67 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 50.14 ▲2.59 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 91.47 ▼13.24 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.67 ▲2.57 |
Add New Item /wp-admin/post-new.php?post_type=menu | 3.51 | 60.19 |
All Menu /wp-admin/edit.php?post_type=menu | 3.42 | 40.80 |
Categories Sorting /wp-admin/edit.php?post_type=menu&page=menucard_cat_order | 3.36 | 31.95 |
Items Sorting /wp-admin/edit.php?post_type=menu&page=menucard_order | 3.37 | 35.39 |
Settings /wp-admin/edit.php?post_type=menu&page=menucard_setting | 3.42 | 39.05 |
Categories /wp-admin/edit-tags.php?taxonomy=menu_cat&post_type=menu | 3.37 | 38.07 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Responsive Menu Card | Price List Items
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲207 | 13.75 ▼0.91 | 6.12 ▲3.89 | 43.21 ▼4.07 |
Dashboard /wp-admin | 2,261 ▲84 | 5.82 ▲0.12 | 90.26 ▼9.14 | 41.64 ▼3.56 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.44 ▲0.33 | 39.83 ▲1.17 | 32.06 ▼5.04 |
Add New Post /wp-admin/post-new.php | 1,579 ▲51 | 23.81 ▲0.58 | 675.72 ▲21.44 | 38.05 ▼19.50 |
Media Library /wp-admin/upload.php | 1,463 ▲69 | 4.50 ▲0.32 | 102.00 ▲3.17 | 40.99 ▲0.87 |
Add New Item /wp-admin/post-new.php?post_type=menu | 2,361 | 8.11 | 195.44 | 65.87 |
All Menu /wp-admin/edit.php?post_type=menu | 1,146 | 2.33 | 37.30 | 30.77 |
Categories Sorting /wp-admin/edit.php?post_type=menu&page=menucard_cat_order | 994 | 2.33 | 31.21 | 37.43 |
Items Sorting /wp-admin/edit.php?post_type=menu&page=menucard_order | 1,010 | 2.20 | 32.07 | 30.33 |
Settings /wp-admin/edit.php?post_type=menu&page=menucard_setting | 2,301 | 2.79 | 81.79 | 39.35 |
Categories /wp-admin/edit-tags.php?taxonomy=menu_cat&post_type=menu | 1,357 | 2.16 | 35.45 | 33.50 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/responsive-menu-card-price-list-items/assets/css/theme.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_term() in wp-content/plugins/responsive-menu-card-price-list-items/templates/rmc-template-category-layout.php:3
- > PHP Notice
Undefined variable: args in wp-content/plugins/responsive-menu-card-price-list-items/templates/rmc-template-category-layout.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function rmc_get_menu_meta() in wp-content/plugins/responsive-menu-card-price-list-items/templates/rmc-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/responsive-menu-card-price-list-items/templates/rmc-settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/responsive-menu-card-price-list-items/templates/rmc-category-order.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function rmc_get_menu_meta() in wp-content/plugins/responsive-menu-card-price-list-items/templates/rmc-menu-order.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=menu_cat&post_type=menu
- > Network (severe)
wp-content/plugins/responsive-menu-card-price-list-items/assets/js/jquery.main.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: category items filter, price list items, custom post order, responsive menu card, price table...
responsive-menu-card-price-list-items/responsive-menu-card.php 85% from 13 tests
"Responsive Menu Card | Price List Items" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 194 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("responsive-menu-card-price-list-items.php" instead of "responsive-menu-card.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
Good job! No executable or dangerous file extensions detected1,853 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 66 | 144 | 1,259 |
CSS | 2 | 0 | 1 | 454 |
JavaScript | 2 | 19 | 6 | 140 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 12.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 1 | 3.23% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/rmc-logo.png | 14.61KB | 8.93KB | ▼ 38.90% |
assets/images/rmc-icon.png | 1.38KB | 0.78KB | ▼ 43.36% |