Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.49ms] Passed 4 tests
A check of server-side resources used by Price List
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.26 ▲0.43 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.27 ▼2.95 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.67 ▼0.24 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.27 ▼12.87 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.90 ▼1.89 |
Server storage [IO: ▲5.79MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 1,687 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_emprice |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
em_price |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Price List
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.17 ▼0.18 | 1.81 ▼0.00 | 43.81 ▼1.98 |
Dashboard /wp-admin | 2,198 ▲18 | 5.56 ▼0.06 | 94.44 ▲4.18 | 65.90 ▲27.51 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.99 ▼0.02 | 33.80 ▼2.17 | 36.76 ▲1.12 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.10 ▼0.75 | 719.07 ▲41.20 | 50.56 ▼1.06 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.15 ▼0.07 | 97.79 ▼4.82 | 74.40 ▲28.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_emprice
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- em_price
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Trait 'PriceList_EM\\admin\\PLEM_PagesPriceListEm' not found in wp-content/plugins/price-list-em/Inc/class-Pricelist.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/price-list-em/admin/class-PricesList.php:7
- > PHP Fatal error
Trait 'PriceList_EM\\admin\\PLEM_PagesPriceListEm' not found in wp-content/plugins/price-list-em/admin/class-EditProduct.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function PriceList_EM\\plugins_url() in wp-content/plugins/price-list-em/app.php:16
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in price-list-em/assets to your readme.txt
price-list-em/app.php 92% from 13 tests
The principal PHP file in "Price List" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("price-list-em.php" instead of "app.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected17,564 lines of code in 1,648 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1,612 | 0 | 0 | 11,161 |
JavaScript | 6 | 616 | 246 | 2,935 |
CSS | 20 | 241 | 53 | 1,886 |
PHP | 8 | 106 | 20 | 1,469 |
JSON | 2 | 0 | 0 | 113 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
4 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo_24.png | 0.70KB | 0.52KB | ▼ 25.56% |
public/images/offer-shape-red.png | 1.43KB | 1.54KB | 0.00% |
public/images/patatas_baston.png | 99.19KB | 27.23KB | ▼ 72.55% |
public/images/offer-shape-white.png | 2.25KB | 3.06KB | 0.00% |