Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▼0.30ms] Passed 4 tests
Server-side resources used by Stylish Price List - Price Table Builder & QR Code Restaurant Menu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 43.18 ▲1.47 |
Dashboard /wp-admin | 4.00 ▲0.70 | 54.88 ▲5.09 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 59.49 ▲15.97 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.64 | 82.93 ▼13.37 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 40.44 ▲5.60 |
Video Tutorials /wp-admin/admin.php?page=stylish_price_list_video | 3.84 | 43.90 |
All Lists /wp-admin/admin.php?page=spl-tabs | 3.89 | 58.43 |
License /wp-admin/admin.php?page=stylish_price_list_license | 3.85 | 40.05 |
Add New List /wp-admin/admin.php?page=spl-tabs-new | 4.64 | 41.71 |
Settings /wp-admin/admin.php?page=stylish_price_list_settings | 6.53 | 44.70 |
Help /wp-admin/admin.php?page=stylish_price_list_help | 6.53 | 40.04 |
SPL Diagnostic /wp-admin/admin.php?page=spl-tabs-diagnostic | 6.53 | 42.49 |
Server storage [IO: ▲6.31MB] [DB: ▲1.50MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 147 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
googlefonts_options |
googlefonts_data |
stylish_price_list_version |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics 75% from 4 tests
Checking browser requirements for Stylish Price List - Price Table Builder & QR Code Restaurant Menu
Please improve the following
- Nodes: It is recommended to reduce the number of DOM nodes under 25,000 (currently 55,894 on /wp-admin/admin.php?page=spl-tabs-new)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲237 | 14.28 ▼0.06 | 1.61 ▼0.33 | 42.48 ▼1.93 |
Dashboard /wp-admin | 2,363 ▲185 | 6.10 ▲0.40 | 117.00 ▲18.11 | 91.69 ▲53.69 |
Posts /wp-admin/edit.php | 2,309 ▲206 | 3.30 ▲1.35 | 53.39 ▲17.36 | 78.37 ▲47.26 |
Add New Post /wp-admin/post-new.php | 6,232 ▲4,706 | 19.11 ▼4.12 | 866.68 ▲169.84 | 39.79 ▼16.68 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 3.97 ▼0.24 | 84.54 ▼22.57 | 73.56 ▲29.16 |
Video Tutorials /wp-admin/admin.php?page=stylish_price_list_video | 3,314 | 29.84 | 764.90 | 112.25 |
All Lists /wp-admin/admin.php?page=spl-tabs | 2,011 | 3.44 | 45.69 | 81.94 |
License /wp-admin/admin.php?page=stylish_price_list_license | 1,195 | 3.36 | 43.85 | 82.38 |
Add New List /wp-admin/admin.php?page=spl-tabs-new | 55,894 | 4.13 | 197.55 | 84.53 |
Settings /wp-admin/admin.php?page=stylish_price_list_settings | 1,111 | 3.46 | 42.50 | 71.45 |
Help /wp-admin/admin.php?page=stylish_price_list_help | 1,111 | 3.43 | 44.94 | 60.89 |
SPL Diagnostic /wp-admin/admin.php?page=spl-tabs-diagnostic | 1,964 | 3.45 | 42.16 | 73.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲1.50MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- googlefonts_options
- stylish_price_list_version
- widget_recent-posts
- theysaidso_admin_options
- googlefonts_data
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=spl-tabs-new
- > Notice in wp-content/plugins/stylish-price-list/admin/tabs/views/tabs-form/pricelist-form.php+43
Undefined index: license
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/stylish-price-list/wp-google-fonts/other_plugins.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: table builder, pricing table, restaurant menu, price list builder, qr code menu
stylish-price-list/stylish-price-list.php 92% from 13 tests
The main file in "Stylish Price List - Price Table Builder & QR Code Restaurant Menu" v. 7.0.18 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- 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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin38,524 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 8,959 | 984 | 18,279 |
CSS | 11 | 273 | 93 | 9,686 |
JavaScript | 10 | 701 | 317 | 3,891 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PO File | 5 | 200 | 504 | 471 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 5 | 4.10% |
▷ Public methods | 99 | 81.15% |
▷ Protected methods | 2 | 1.64% |
▷ Private methods | 21 | 17.21% |
Functions | 89 | |
▷ Named functions | 77 | 86.52% |
▷ Anonymous functions | 12 | 13.48% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 3.39MB with 2.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/tooltip-images/remove-all-tab.png | 221.23KB | 76.19KB | ▼ 65.56% |
assets/images/Stylish-Price-List-Logo-418x134.png | 4.68KB | 2.45KB | ▼ 47.71% |
assets/images/question3.png | 217.24KB | 83.02KB | ▼ 61.79% |
assets/images/Style2.png | 201.33KB | 75.01KB | ▼ 62.75% |
assets/images/tooltip-images/break-line.png | 203.42KB | 69.03KB | ▼ 66.07% |