Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.82ms] Passed 4 tests
Analyzing server-side resources used by AstroPay for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.50 ▼6.03 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.08 ▼8.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.45 ▼3.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.83 ▼12.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.13 ▼2.51 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for AstroPay for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.22 ▼1.17 | 1.70 ▼0.64 | 45.77 ▼4.95 |
Dashboard /wp-admin | 2,209 ▲18 | 5.91 ▼0.02 | 107.99 ▲5.48 | 39.31 ▼8.98 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▲0.02 | 39.02 ▼0.45 | 36.02 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.11 ▼0.23 | 606.43 ▼47.16 | 51.11 ▼12.41 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.28 ▲0.09 | 92.35 ▼4.78 | 43.17 ▼0.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function Ecomerciar\\AstroPay\\Gateway\\apply_filters() in wp-content/plugins/astropay-for-woocommerce/src/gateway/settings.php:12
- > PHP Fatal error
Trait 'Ecomerciar\\AstroPay\\Helper\\TemplatesTrait' not found in wp-content/plugins/astropay-for-woocommerce/src/helper/class-helper.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'Ecomerciar\\AstroPay\\Helper\\Helper' not found in wp-content/plugins/astropay-for-woocommerce/templates/page-onboarding.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 83% 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:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6 in astropay-for-woocommerce/assets to your readme.txt
- Tags: There are too many tags (14 tag instead of maximum 10)
astropay-for-woocommerce/astropay-woocommerce.php 77% from 13 tests
The main file in "AstroPay for WooCommerce" v. 2.0.3 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: Please rename the main PHP file in this plugin to the plugin slug ("astropay-for-woocommerce.php" instead of "astropay-woocommerce.php")
- Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "4")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,623 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 300 | 669 | 2,193 |
CSS | 1 | 45 | 61 | 266 |
SVG | 4 | 0 | 2 | 83 |
JavaScript | 1 | 12 | 3 | 81 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 9 | |
Classes | 10 | |
▷ Abstract classes | 2 | 20.00% |
▷ Concrete classes | 8 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 51 | 60.71% |
▷ Public methods | 76 | 90.48% |
▷ Protected methods | 2 | 2.38% |
▷ Private methods | 6 | 7.14% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
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/astropay-woocommerce-logo.png | 9.20KB | 5.08KB | ▼ 44.76% |
assets/img/loading-spinner.png | 1.18KB | 1.35KB | 0.00% |