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
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼0.18ms] Passed 4 tests
This is a short check of server-side resources used by Show Active Purchases for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 42.76 ▲2.50 |
Dashboard /wp-admin | 3.58 ▲0.28 | 53.45 ▲3.31 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 52.98 ▲4.72 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 85.45 ▼11.25 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.25 ▲4.96 |
Show Active Purchases for WooCommerce /wp-admin/options-general.php?page=sap-for-woocommerce-admin | 3.41 | 37.22 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
sapfw_basic |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Show Active Purchases for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,070 ▲324 | 15.40 ▲1.03 | 5.51 ▲3.64 | 42.19 ▼3.99 |
Dashboard /wp-admin | 2,371 ▲183 | 6.64 ▲0.76 | 133.97 ▲18.81 | 43.12 ▼2.22 |
Posts /wp-admin/edit.php | 2,277 ▲188 | 3.59 ▲1.54 | 57.88 ▲20.13 | 34.28 ▼2.34 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 17.63 ▼5.43 | 644.53 ▼37.80 | 35.80 ▼24.40 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.40 ▲0.23 | 84.58 ▼19.19 | 42.25 ▼0.71 |
Show Active Purchases for WooCommerce /wp-admin/options-general.php?page=sap-for-woocommerce-admin | 1,027 | 3.45 | 49.07 | 27.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- sapfw_basic
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/show-active-purchases-for-woocommerce/public/partials/sap-for-woocommerce-public-display.php
- > /wp-content/plugins/show-active-purchases-for-woocommerce/admin/partials/sap-for-woocommerce-admin-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-active-purchases-for-woocommerce/vendor/tareq1988/wordpress-settings-api-class/example/procedural-example.php:270
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-active-purchases-for-woocommerce/vendor/tareq1988/wordpress-settings-api-class/src/class.settings-api.php:30
- > PHP Fatal error
Uncaught Error: Class 'WeDevs_Settings_API' not found in wp-content/plugins/show-active-purchases-for-woocommerce/includes/class-sap-for-woocommerce-settings.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Requires php: Invalid version format
- Tags: You are using too many tags: 11 tag instead of maximum 10
show-active-purchases-for-woocommerce/sap-for-woocommerce.php 85% from 13 tests
"Show Active Purchases for WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("show-active-purchases-for-woocommerce.php" instead of "sap-for-woocommerce.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; 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
Success! There were no dangerous files found in this plugin1,613 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 373 | 948 | 1,485 |
JSON | 3 | 0 | 0 | 75 |
Markdown | 1 | 21 | 0 | 47 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 6 | 6.45% |
▷ Public methods | 84 | 90.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 9.68% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.38MB with 0.27MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/tareq1988/wordpress-settings-api-class/screenshot-1.png | 389.59KB | 115.93KB | ▼ 70.24% |