Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.34MB] [CPU: ▲1.81ms] Passed 4 tests
This is a short check of server-side resources used by Pre-Orders for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 38.29 ▲1.86 |
Dashboard /wp-admin | 3.67 ▲0.36 | 47.39 ▼0.74 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 47.81 ▼0.00 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 99.77 ▲8.25 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 40.70 ▲6.11 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
rdn_fetch_1529d7bd |
Browser metrics Passed 4 tests
Checking browser requirements for Pre-Orders for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.29 ▼0.24 | 1.51 ▼0.12 | 41.18 ▼0.80 |
Dashboard /wp-admin | 2,202 ▲25 | 5.53 ▼0.16 | 81.76 ▼5.90 | 39.32 ▼4.85 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.16 ▲0.15 | 35.82 ▲1.19 | 34.57 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,538 ▲1 | 23.28 ▲5.10 | 594.93 ▼6.03 | 46.16 ▼18.10 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▼0.02 | 93.58 ▼14.21 | 43.04 ▼3.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- rdn_fetch_1529d7bd
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/pre-orders-for-woocommerce/elementor/widgets/preorder-products.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in pre-orders-for-woocommerce/assets to your readme.txt
pre-orders-for-woocommerce/main.php 77% from 13 tests
The main file in "Pre-Orders for WooCommerce" v. 1.2.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("pre-orders-for-woocommerce.php" instead of "main.php")
- Requires PHP: Required version does not match the one declared in readme.txt ("7.2" instead of "7.2.0")
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.0")
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
Everything looks great! No dangerous files found in this plugin5,111 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 1,145 | 2,245 | 4,405 |
JSON | 5 | 2 | 0 | 259 |
CSS | 2 | 18 | 5 | 222 |
XML | 2 | 7 | 11 | 148 |
JavaScript | 4 | 20 | 14 | 77 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 19.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 2 | 6.90% |
Methods | 305 | |
▷ Static methods | 29 | 9.51% |
▷ Public methods | 242 | 79.34% |
▷ Protected methods | 23 | 7.54% |
▷ Private methods | 40 | 13.11% |
Functions | 16 | |
▷ Named functions | 3 | 18.75% |
▷ Anonymous functions | 13 | 81.25% |
Constants | 5 | |
▷ Global constants | 5 | 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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/img/bp-logo-icon.png | 1.09KB | 0.87KB | ▼ 20.45% |
media/img/BP-50-off-banner.png | 39.92KB | 15.00KB | ▼ 62.43% |
media/img/bp-logo.png | 4.99KB | 2.68KB | ▼ 46.35% |