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: ▲1.34MB] [CPU: ▲9.03ms] Passed 4 tests
An overview of server-side resources used by WP Restaurant Price List
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.78 ▲1.32 | 53.80 ▲12.95 |
Dashboard /wp-admin | 4.63 ▲1.33 | 57.38 ▲2.20 |
Posts /wp-admin/edit.php | 4.75 ▲1.39 | 60.27 ▲11.56 |
Add New Post /wp-admin/post-new.php | 7.29 ▲1.41 | 112.34 ▲9.41 |
Media Library /wp-admin/upload.php | 4.56 ▲1.33 | 51.00 ▲16.37 |
Price Lists /wp-admin/edit.php?post_type=wprpl | 4.60 | 46.00 |
Settings /wp-admin/edit.php?post_type=wprpl&page=wprpl-options | 4.73 | 56.46 |
Dashboard /wp-admin/plugins.php?page=meta-box | 4.55 | 47.50 |
Add New /wp-admin/post-new.php?post_type=wprpl | 4.74 | 65.45 |
Server storage [IO: ▲1.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 367 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Restaurant Price List
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,990 ▲229 | 13.78 ▼0.42 | 8.44 ▲6.76 | 42.78 ▲1.92 |
Dashboard /wp-admin | 2,288 ▲108 | 5.65 ▼0.03 | 88.16 ▼3.76 | 40.89 ▼6.36 |
Posts /wp-admin/edit.php | 2,190 ▲90 | 2.03 ▲0.06 | 40.09 ▼0.34 | 35.32 ▼4.19 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 23.32 ▲0.32 | 602.36 ▼7.61 | 58.09 ▲6.78 |
Media Library /wp-admin/upload.php | 1,505 ▲108 | 4.22 ▲0.05 | 98.17 ▼7.27 | 41.47 ▼4.23 |
Price Lists /wp-admin/edit.php?post_type=wprpl | 1,154 | 2.10 | 31.33 | 28.66 |
Settings /wp-admin/edit.php?post_type=wprpl&page=wprpl-options | 2,376 | 5.00 | 123.70 | 117.73 |
Dashboard /wp-admin/plugins.php?page=meta-box | 1,414 | 2.05 | 23.83 | 45.85 |
Add New /wp-admin/post-new.php?post_type=wprpl | 2,023 | 4.94 | 93.73 | 83.85 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-restaurant-price-list/assets/meta-box/inc/templates/image-advanced.php
- > /wp-content/plugins/wp-restaurant-price-list/public/partials/wp-restaurant-price-list-public-display.php
- > /wp-content/plugins/wp-restaurant-price-list/templates/list-multi.php
- > /wp-content/plugins/wp-restaurant-price-list/admin/partials/wp-restaurant-price-list-admin-display.php
- > /wp-content/plugins/wp-restaurant-price-list/assets/meta-box/inc/templates/audio.php
- > /wp-content/plugins/wp-restaurant-price-list/assets/meta-box/inc/templates/upload.php
- > /wp-content/plugins/wp-restaurant-price-list/assets/meta-box/inc/templates/media.php
- > /wp-content/plugins/wp-restaurant-price-list/assets/meta-box/inc/templates/video.php
- 95× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: price in wp-content/plugins/wp-restaurant-price-list/templates/list.php on line 12
- > PHP Notice
Undefined variable: output in wp-content/plugins/wp-restaurant-price-list/templates/list.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'RWMB_File_Field' not found in wp-content/plugins/wp-restaurant-price-list/assets/meta-box/inc/fields/image.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/wp-restaurant-price-list/assets/meta-box/inc/fields/multiple-values.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-restaurant-price-list/assets/meta-box/inc/about/sections/products.php:12
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/wp-restaurant-price-list/assets/meta-box/inc/fields/choice.php:11
- > PHP Notice
Undefined variable: price in wp-content/plugins/wp-restaurant-price-list/templates/list-multi.php on line 63
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-restaurant-price-list/assets/meta-box/inc/about/sections/upgrade.php:10
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Multiple_Values_Field' not found in wp-content/plugins/wp-restaurant-price-list/assets/meta-box/inc/fields/autocomplete.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/wp-restaurant-price-list/assets/meta-box/inc/about/sections/welcome.php:11
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=wprpl&page=wprpl-options
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Create your price list in the dashboard), #2 (Display of the price list on Twenty Nineteen), #3 (Settings)
wp-restaurant-price-list/wp-restaurant-price-list.php 92% from 13 tests
The entry point to "WP Restaurant Price List" version 1.4.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Git Repository: There should be no Git repositories present in your plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected16,889 lines of code in 322 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 149 | 2,048 | 5,702 | 8,672 |
JavaScript | 109 | 843 | 781 | 3,367 |
CSS | 46 | 293 | 185 | 3,199 |
PO File | 14 | 534 | 600 | 1,471 |
Sass | 1 | 15 | 9 | 141 |
Markdown | 2 | 15 | 0 | 34 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 8.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 114 | |
▷ Abstract classes | 6 | 5.26% |
▷ Concrete classes | 108 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 626 | |
▷ Static methods | 330 | 52.72% |
▷ Public methods | 533 | 85.14% |
▷ Protected methods | 54 | 8.63% |
▷ Private methods | 39 | 6.23% |
Functions | 35 | |
▷ Named functions | 25 | 71.43% |
▷ Anonymous functions | 10 | 28.57% |
Constants | 8 | |
▷ Global constants | 8 | 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
20 PNG files occupy 0.42MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/meta-box/img/jqueryui/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
assets/meta-box/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
public/img/List.png | 21.16KB | 2.19KB | ▼ 89.64% |
assets/meta-box/img/jqueryui/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
assets/meta-box/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |