Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.25MB] [CPU: ▼2.75ms] Passed 4 tests
A check of server-side resources used by ePayco plugin for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 43.93 ▲5.53 |
Dashboard /wp-admin | 3.55 ▲0.25 | 51.21 ▲4.29 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 46.23 ▼6.21 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 88.01 ▼1.66 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 36.94 ▼7.43 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
ePayco plugin for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.33 ▼1.03 | 1.64 ▼0.09 | 42.98 ▲1.36 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲0.01 | 112.07 ▲12.47 | 42.53 ▼5.54 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.00 | 32.77 ▼5.12 | 35.02 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,514 ▼11 | 17.60 ▼5.48 | 709.71 ▲43.18 | 53.83 ▲2.25 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.17 ▼0.07 | 93.64 ▼18.12 | 42.04 ▼4.79 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/epayco-gateway/lib/delete.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: Screenshot #1 (The front-end view) image not found
epayco-gateway/woocommerce-gateway-payco.php 77% from 13 tests
The main file in "ePayco plugin for WooCommerce" v. 6.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("epayco-gateway.php" instead of "woocommerce-gateway-payco.php")
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,022 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 187 | 95 | 1,838 |
CSS | 1 | 5 | 1 | 107 |
Markdown | 1 | 13 | 0 | 63 |
JavaScript | 1 | 1 | 0 | 14 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 151)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 111.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 216.00 |
Average method complexity | 9.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 151.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 6 | 23.08% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.62MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/images/epayco3.png | 13.08KB | 5.21KB | ▼ 60.20% |
ImgTutorialWooCommerce/tuto-7.png | 50.48KB | 22.68KB | ▼ 55.08% |
ImgTutorialWooCommerce/tuto-8.png | 65.26KB | 25.57KB | ▼ 60.83% |
ImgTutorialWooCommerce/tuto-3.png | 60.60KB | 23.49KB | ▼ 61.24% |
lib/epayco.png | 11.93KB | 4.99KB | ▼ 58.14% |