Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.45ms] Passed 4 tests
This is a short check of server-side resources used by Payment Gateway for PhoeniXGate on WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.28 ▲4.83 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.26 ▼9.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.22 ▼0.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.67 ▼11.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.00 ▲3.26 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Payment Gateway for PhoeniXGate on WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.68 ▼0.70 | 1.64 ▼0.31 | 37.87 ▼7.71 |
Dashboard /wp-admin | 2,209 ▲21 | 4.80 ▼0.10 | 102.86 ▼11.54 | 41.23 ▼7.43 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▲0.01 | 38.93 ▲1.38 | 35.68 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.34 ▲0.22 | 654.85 ▼17.45 | 63.97 ▲7.81 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.33 ▲0.09 | 97.54 ▼3.65 | 44.38 ▼1.64 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wc-phoenixgate-payment-gateway/admin/partials/woo-phxmn-admin-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-phoenixgate-payment-gateway/public/partials/woo-phxmn-public-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-phoenixgate-payment-gateway/includes/class-woo-phxmn-payment-gateway.php:662
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-phoenixgate-payment-gateway/public/partials/woo-phxmn-check-display.php:15
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Donate link: Invalid url: ""
wc-phoenixgate-payment-gateway/wc-phoenixgate-payment-gateway.php Passed 13 tests
The principal PHP file in "Payment Gateway for PhoeniXGate on WooCommerce" v. 2.0.0 is loaded by WordPress automatically on each request
92 characters long description:
Phoenix’s unified e-commerce and multi-channel gateway solution for the payments industry.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,125 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 117 | 702 | 724 |
JavaScript | 3 | 18 | 73 | 354 |
CSS | 2 | 0 | 8 | 47 |
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.28 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 2 | 4.55% |
▷ Public methods | 30 | 68.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 31.82% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
8 PNG files occupy 0.45MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 136.87KB | 59.79KB | ▼ 56.32% |
assets/banner-772x250.png | 80.27KB | 26.67KB | ▼ 66.77% |
assets/screenshot-2.png | 74.04KB | 29.59KB | ▼ 60.04% |
assets/icon-128x128.png | 8.68KB | 2.98KB | ▼ 65.61% |
assets/icon-256x256.png | 17.19KB | 6.38KB | ▼ 62.89% |