Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.92ms] Passed 4 tests
An overview of server-side resources used by Pays – WooCommerce Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 47.57 ▲10.14 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.56 ▼4.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.50 ▼8.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.92 ▼15.92 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.56 ▼2.05 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Pays – WooCommerce Payment Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.65 ▲0.02 | 2.09 ▲0.33 | 43.20 ▼0.73 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.95 | 113.25 ▲2.71 | 42.58 ▼4.72 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.06 | 35.93 ▼5.46 | 33.61 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,529 ▲10 | 18.03 ▼5.15 | 618.07 ▼57.48 | 58.06 ▲7.27 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.07 | 94.18 ▼5.25 | 40.23 ▼4.16 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- 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
Good news, no errors were detected
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
The following issues need your attention
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/axima-payment-gateway/src/templates/includes/menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/axima-payment-gateway/src/templates/includes/menu.php:3
- > PHP Notice
Undefined variable: domain in wp-content/plugins/axima-payment-gateway/src/templates/includes/menu.php on line 3
- > PHP Notice
Undefined variable: page in wp-content/plugins/axima-payment-gateway/src/templates/includes/menu.php on line 2
- > PHP Notice
Undefined variable: domain in wp-content/plugins/axima-payment-gateway/src/templates/includes/menu.php on line 3
- > PHP Notice
Undefined variable: page in wp-content/plugins/axima-payment-gateway/src/templates/includes/menu.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/axima-payment-gateway/src/templates/includes/menu.php:3
- > PHP Notice
Undefined variable: page in wp-content/plugins/axima-payment-gateway/src/templates/includes/menu.php on line 2
- > PHP Notice
Undefined variable: page in wp-content/plugins/axima-payment-gateway/src/templates/includes/menu.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/axima-payment-gateway/src/templates/includes/menu.php:3
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
axima-payment-gateway/axima-payment-gateway.php Passed 13 tests
"Pays – WooCommerce Payment Gateway" version 2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
140 characters long description:
Payment gate, supporting EUR, USD and CZK. Contains all common payment methods, including mobile and SMS payments. Support for EET included.
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
Success! There were no dangerous files found in this plugin941 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 185 | 77 | 840 |
PO File | 1 | 42 | 45 | 97 |
CSS | 2 | 0 | 8 | 2 |
JavaScript | 1 | 0 | 5 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 4 | 9.30% |
▷ Public methods | 28 | 65.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 34.88% |
Functions | 15 | |
▷ Named functions | 1 | 6.67% |
▷ Anonymous functions | 14 | 93.33% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 34.39KB | 15.48KB | ▼ 54.99% |
assets/screenshot-1.png | 21.26KB | 9.51KB | ▼ 55.27% |
assets/screenshot-3.png | 75.21KB | 31.27KB | ▼ 58.42% |