Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.91ms] Passed 4 tests
Analyzing server-side resources used by Orders Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.34 ▲0.11 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.48 ▼5.82 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.67 ▲2.71 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.25 ▼8.63 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 35.17 ▲3.10 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Orders Pro: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.42 ▲0.13 | 1.78 ▲0.12 | 44.25 ▼0.26 |
Dashboard /wp-admin | 2,206 ▲26 | 5.58 ▼0.09 | 81.51 ▼8.79 | 38.76 ▼4.45 |
Posts /wp-admin/edit.php | 2,115 ▲18 | 1.99 ▼0.03 | 36.06 ▼0.75 | 33.94 ▼1.79 |
Add New Post /wp-admin/post-new.php | 1,607 ▲81 | 22.00 ▼0.94 | 606.44 ▼41.67 | 36.37 ▼27.78 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.25 ▲0.04 | 97.71 ▲4.44 | 44.87 ▲2.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/orders-pro/functions/OrdersPreview.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/orders-pro/functions/OrdersPreview/PriceColumn.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/orders-pro/functions/Orders.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/orders-pro/pages/Options/OrderPreviewColumns.php:1
- > PHP Notice
Undefined variable: OrderPro_Orders_options in wp-content/plugins/orders-pro/pages/Options/Orders.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/orders-pro/functions/OrdersPreview/PriceColumn.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/orders-pro/pages/Options/Orders.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/orders-pro/pages/options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/orders-pro/pages/Options/aboutPremium.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/orders-pro/pages/Options/Orders.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
orders-pro/orders-pro.php 92% from 13 tests
The main PHP file in "Orders Pro" ver. 1.8 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,225 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 95 | 72 | 503 |
CSS | 2 | 3 | 0 | 238 |
SVG | 8 | 0 | 5 | 215 |
PO File | 1 | 58 | 76 | 147 |
JavaScript | 2 | 5 | 10 | 122 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 7 | 77.78% |
▷ Protected methods | 2 | 22.22% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 8 | 40.00% |
▷ Anonymous functions | 12 | 60.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon-20.png | 3.54KB | 1.05KB | ▼ 70.35% |