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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.27ms] Passed 4 tests
An overview of server-side resources used by CentroBill Payment Gateway for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 45.37 ▲3.12 |
Dashboard /wp-admin | 3.34 ▲0.03 | 50.52 ▼5.62 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.83 ▲2.24 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 98.30 ▼1.02 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 39.23 ▼0.68 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
CentroBill Payment Gateway for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.77 ▲0.20 | 2.13 ▲0.46 | 44.61 ▲1.25 |
Dashboard /wp-admin | 2,192 ▲15 | 5.59 ▼0.03 | 94.01 ▲0.69 | 42.93 ▲1.67 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▲0.01 | 41.31 ▲1.94 | 34.81 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.11 ▲0.09 | 701.78 ▲5.31 | 72.20 ▲16.42 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.11 ▼0.08 | 103.55 ▼6.54 | 44.03 ▼0.61 |
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
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: centrobill, payment gateway, online payment, credit card, sepa...
centrobill-payment-gateway/wc-centrobill.php 92% from 13 tests
The entry point to "CentroBill Payment Gateway for WooCommerce" version 2.2.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("centrobill-payment-gateway.php" instead of "wc-centrobill.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,245 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 377 | 627 | 2,223 |
JavaScript | 1 | 3 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 10.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 2 | 10.53% |
▷ Concrete classes | 17 | 89.47% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 19 | 15.97% |
▷ Public methods | 87 | 73.11% |
▷ Protected methods | 2 | 1.68% |
▷ Private methods | 30 | 25.21% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 68 | |
▷ Global constants | 4 | 5.88% |
▷ Class constants | 64 | 94.12% |
▷ Public constants | 64 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sofortbanking.png | 4.41KB | 2.34KB | ▼ 46.95% |
assets/images/przelewy24.png | 7.38KB | 2.24KB | ▼ 69.59% |
assets/images/crypto.png | 3.65KB | 2.48KB | ▼ 31.91% |
assets/images/centrobill_logo.png | 2.93KB | 1.33KB | ▼ 54.40% |
assets/images/ideal.png | 4.09KB | 1.56KB | ▼ 61.85% |