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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.57ms] Passed 4 tests
A check of server-side resources used by Speedaf Express for woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 35.38 ▼0.68 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.59 ▼3.17 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 42.54 ▼4.70 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.20 ▼9.74 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.89 ▲0.20 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 72 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_spf_track_subscribe |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Speedaf Express for woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.28 | 1.70 ▲0.10 | 40.33 ▼0.65 |
Dashboard /wp-admin | 2,192 ▲14 | 5.49 ▼0.24 | 80.76 ▼23.15 | 36.66 ▼5.28 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.98 ▲0.01 | 34.82 ▼1.40 | 33.35 ▼4.47 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.96 ▼0.10 | 578.79 ▼93.74 | 51.15 ▲1.17 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▲0.03 | 93.42 ▼4.43 | 39.90 ▼0.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 return non-empty strings:
- > /wp-content/plugins/speedaf-express-for-woocommerce/templates/table/order-body.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/speedaf-express-for-woocommerce/templates/order/tracking.php on line 55
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/speedaf-express-for-woocommerce/templates/table/order-sender-popup.php:5
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/speedaf-express-for-woocommerce/templates/table/print-order.php on line 101
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/speedaf-express-for-woocommerce/templates/settings/speedaf_settings_view.php:2
- > PHP Fatal error
Uncaught Error: Class 'Wolf\\Speedaf\\Helper\\SpfHelper' not found in wp-content/plugins/speedaf-express-for-woocommerce/templates/table/order.php:2
- > PHP Notice
Undefined variable: orders in wp-content/plugins/speedaf-express-for-woocommerce/templates/table/order-body.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/speedaf-express-for-woocommerce/templates/account/tracking.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/speedaf-express-for-woocommerce/templates/order/meta-box.php:3
- > PHP Parse 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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #4, #5, #6 in speedaf-express-for-woocommerce/assets to your readme.txt
speedaf-express-for-woocommerce/wc-speedaf.php 85% from 13 tests
The principal PHP file in "Speedaf Express for woocommerce" v. 1.2.2 is loaded by WordPress automatically on each request
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.1" instead of "6.8.2")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("speedaf-express-for-woocommerce.php" instead of "wc-speedaf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected6,637 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 834 | 891 | 2,808 |
CSS | 7 | 573 | 88 | 2,771 |
JavaScript | 13 | 283 | 222 | 1,031 |
JSON | 1 | 0 | 0 | 26 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 3 | 11.54% |
▷ Concrete classes | 23 | 88.46% |
▷ Final classes | 0 | 0.00% |
Methods | 182 | |
▷ Static methods | 20 | 10.99% |
▷ Public methods | 140 | 76.92% |
▷ Protected methods | 10 | 5.49% |
▷ Private methods | 32 | 17.58% |
Functions | 24 | |
▷ Named functions | 4 | 16.67% |
▷ Anonymous functions | 20 | 83.33% |
Constants | 35 | |
▷ Global constants | 6 | 17.14% |
▷ Class constants | 29 | 82.86% |
▷ Public constants | 29 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icons.png | 3.36KB | 3.35KB | 0.20% |
assets/img/speedaf-logo.png | 9.27KB | 2.69KB | ▼ 70.96% |