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.42MB] [CPU: ▼1.10ms] Passed 4 tests
A check of server-side resources used by ECPay Invoice for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 44.15 ▲1.24 |
Dashboard /wp-admin | 3.76 ▲0.45 | 48.33 ▼1.35 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 49.89 ▲5.79 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 84.57 ▼3.10 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 38.29 ▼1.19 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by ECPay Invoice for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.20 ▼1.15 | 1.79 ▼0.29 | 42.47 ▼3.78 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼0.01 | 110.46 ▼3.24 | 41.08 ▼6.66 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▼0.09 | 40.28 ▲3.86 | 34.88 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.43 ▲2.46 | 644.98 ▼36.03 | 52.46 ▲7.20 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.22 ▼0.04 | 102.64 ▼3.85 | 52.60 ▲4.23 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Requires php: Invalid version format
- Screenshots: Please a description for screenshot #1 in ecpay-invoice-for-woocommerce/assets to your readme.txt
ecpay-invoice-for-woocommerce/woocommerce-ecpayinvoice.php 85% from 13 tests
The entry point to "ECPay Invoice for WooCommerce" version 1.1.2107130 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ecpay-invoice-for-woocommerce.php" instead of "woocommerce-ecpayinvoice.php")
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "3")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected2,937 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 843 | 861 | 2,682 |
JavaScript | 3 | 89 | 21 | 213 |
CSS | 1 | 1 | 0 | 42 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 16.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 8.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 16 | 41.03% |
▷ Concrete classes | 23 | 58.97% |
▷ Final classes | 1 | 4.35% |
Methods | 78 | |
▷ Static methods | 16 | 20.51% |
▷ Public methods | 71 | 91.03% |
▷ Protected methods | 6 | 7.69% |
▷ Private methods | 1 | 1.28% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 54 | |
▷ Global constants | 1 | 1.85% |
▷ Class constants | 53 | 98.15% |
▷ Public constants | 53 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin