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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.98ms] Passed 4 tests
Server-side resources used by Paybox WooCommerce Payment Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.55 ▼4.82 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.68 ▼14.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.77 ▼5.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.55 ▼14.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.96 ▼5.39 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 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 Paybox WooCommerce Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.14 | 1.78 ▼0.00 | 46.09 ▲5.91 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▲0.01 | 106.29 ▼0.07 | 41.11 ▼3.18 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▼0.00 | 39.70 ▼1.10 | 34.53 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.34 ▲0.08 | 684.02 ▲32.04 | 54.58 ▼0.88 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.01 | 96.03 ▼15.56 | 45.81 ▲0.77 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/paybox-woocommerce-gateway/class/wc-paybox-abstract-gateway.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_Paybox_Abstract_Gateway' not found in wp-content/plugins/paybox-woocommerce-gateway/class/wc-paybox-threetime-gateway.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_Paybox_Abstract_Gateway' not found in wp-content/plugins/paybox-woocommerce-gateway/class/wc-paybox-standard-gateway.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("none")
paybox-woocommerce-gateway/woocommerce-paybox.php 85% from 13 tests
The principal PHP file in "Paybox WooCommerce Payment Gateway" v. 0.9.9.5 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("paybox-woocommerce-gateway.php" instead of "woocommerce-paybox.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 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
No dangerous file extensions were detected2,110 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 205 | 249 | 1,906 |
PO File | 1 | 82 | 100 | 204 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 16.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 2 | 2.74% |
▷ Public methods | 63 | 86.30% |
▷ Protected methods | 3 | 4.11% |
▷ Private methods | 7 | 9.59% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
7 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 4.29KB | 2.11KB | ▼ 50.84% |
images/3xcbvisamcecb.png | 6.41KB | 3.30KB | ▼ 48.49% |
images/logo.png | 4.92KB | 3.40KB | ▼ 30.79% |
assets/banner-1544x500.png | 138.14KB | 54.53KB | ▼ 60.53% |
assets/banner-772X250.png | 50.96KB | 21.24KB | ▼ 58.32% |