Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.29MB] [CPU: ▲2.82ms] Passed 4 tests
An overview of server-side resources used by Best Restaurant Menu by PriceListo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 37.67 ▼3.44 |
Dashboard /wp-admin | 3.67 ▲0.36 | 51.34 ▲3.81 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 58.03 ▲12.88 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 93.07 ▼1.22 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 48.00 ▲12.12 |
Menu /wp-admin/admin.php?page=brm-menu | 3.51 | 36.73 |
Settings /wp-admin/admin.php?page=brm-settings | 3.67 | 41.69 |
Server storage [IO: ▲3.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 211 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_brm_options |
wp_brm_items |
wp_brm_groups |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Best Restaurant Menu by PriceListo
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,174 ▲417 | 15.53 ▲1.15 | 8.82 ▲6.64 | 44.40 ▼2.85 |
Dashboard /wp-admin | 2,390 ▲211 | 6.80 ▲1.91 | 140.76 ▲34.41 | 43.15 ▲0.06 |
Posts /wp-admin/edit.php | 2,300 ▲211 | 3.65 ▲1.66 | 55.69 ▲18.87 | 33.18 ▼0.45 |
Add New Post /wp-admin/post-new.php | 1,706 ▲185 | 22.81 ▼0.27 | 611.85 ▼67.89 | 38.85 ▼10.41 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.47 ▲0.26 | 90.60 ▼10.09 | 43.74 ▲0.04 |
Menu /wp-admin/admin.php?page=brm-menu | 1,004 | 3.34 | 40.43 | 23.89 |
Settings /wp-admin/admin.php?page=brm-settings | 3,379 | 3.89 | 55.33 | 62.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_brm_items
- wp_brm_options
- wp_brm_groups
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/best-restaurant-menu-by-pricelisto/templates/admin/vendor/currencies.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/best-restaurant-menu-by-pricelisto/templates/admin/vendor/currency-symbols.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6 in best-restaurant-menu-by-pricelisto/assets to your readme.txt
best-restaurant-menu-by-pricelisto/best-restaurant-menu.php 77% from 13 tests
"Best Restaurant Menu by PriceListo" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("best-restaurant-menu-by-pricelisto.php" instead of "best-restaurant-menu.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 181 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin48,070 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 81 | 8,009 | 4,896 | 31,641 |
CSS | 24 | 278 | 159 | 6,057 |
PHP | 31 | 535 | 1,441 | 2,812 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
HTML | 2 | 152 | 16 | 842 |
Markdown | 4 | 79 | 0 | 354 |
JSON | 4 | 0 | 0 | 167 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 28 | 39.44% |
▷ Public methods | 70 | 98.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.41% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
9 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/vendor/jquery-ui/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/dist/vendor/lightbox2/dist/images/prev.png | 1.33KB | 1.59KB | 0.00% |
assets/dist/vendor/lightbox2/dist/images/next.png | 1.32KB | 1.58KB | 0.00% |
assets/dist/vendor/jquery-ui/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
assets/dist/vendor/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |