Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.61MB] [CPU: ▼6.77ms] Passed 4 tests
An overview of server-side resources used by 2Checkout Integration for WordPress - WP Super Pay
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.65 | 42.49 ▼0.31 |
Dashboard /wp-admin | 3.81 ▲0.46 | 38.90 ▼32.65 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 51.89 ▲3.59 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.75 | 101.25 ▲2.28 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 43.00 ▲6.38 |
Settings /wp-admin/admin.php?page=2checkout-settings | 3.90 | 43.06 |
Transactions /wp-admin/admin.php?page=2checkout-transactions | 3.90 | 40.85 |
Payment Forms /wp-admin/edit.php?post_type=twoco | 3.94 | 41.68 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 60 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_2co_transactionmeta |
wp_2co_transactions |
New WordPress options |
---|
db_upgraded |
codexpert-blog-json |
2checkout_installed |
2checkout_install_time |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
_2checkout_notices |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for 2Checkout Integration for WordPress - WP Super Pay
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,178 ▲417 | 21.50 ▲7.15 | 308.28 ▲306.65 | 48.41 ▲4.85 |
Dashboard /wp-admin | 2,292 ▲112 | 5.68 ▼0.01 | 90.29 ▼10.16 | 36.62 ▼5.56 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.22 ▲0.08 | 35.25 ▼3.79 | 32.74 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,581 ▲53 | 18.36 ▼4.67 | 590.21 ▼64.01 | 66.34 ▲11.21 |
Media Library /wp-admin/upload.php | 1,443 ▲40 | 4.28 ▲0.14 | 100.41 ▼4.08 | 43.94 ▼2.97 |
Settings /wp-admin/admin.php?page=2checkout-settings | 1,096 | 3.62 | 48.10 | 35.75 |
Transactions /wp-admin/admin.php?page=2checkout-transactions | 963 | 2.12 | 26.28 | 26.64 |
Payment Forms /wp-admin/edit.php?post_type=twoco | 1,113 | 2.16 | 33.14 | 27.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_2co_transactionmeta
- wp_2co_transactions
- Zombie WordPress options were found after uninstall: 11 options
- 2checkout_version
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- 2checkout_installed
- db_upgraded
- 2checkout_install_time
- codexpert-blog-json
- ...
Smoke tests 75% from 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 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 items
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'codexpert\\plugin\\Base' not found in wp-content/plugins/2checkout/src/Settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/2checkout/views/transactions.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/2checkout/functions/helpers.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/2checkout/views/payment-section.php:3
- > PHP Notice
Undefined variable: args in wp-content/plugins/2checkout/views/payment-section.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/2checkout/functions/helpers.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/2checkout/functions/helpers.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/2checkout/functions/helpers.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/2checkout/views/payment-section.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/2checkout/functions/helpers.php on line 3
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: 2checkout for wordpress, 2checkout, twoco
2checkout/2checkout.php 92% from 13 tests
"2Checkout Integration for WordPress - WP Super Pay" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected4,825 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 888 | 912 | 3,495 |
CSS | 8 | 5 | 6 | 971 |
JavaScript | 7 | 23 | 4 | 288 |
JSON | 3 | 0 | 0 | 70 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 24.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 2 | 8.70% |
▷ Concrete classes | 21 | 91.30% |
▷ Final classes | 1 | 4.76% |
Methods | 229 | |
▷ Static methods | 7 | 3.06% |
▷ Public methods | 219 | 95.63% |
▷ Protected methods | 2 | 0.87% |
▷ Private methods | 8 | 3.49% |
Functions | 17 | |
▷ Named functions | 13 | 76.47% |
▷ Anonymous functions | 4 | 23.53% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/codexpert/plugin/src/assets/img/survey.png | 7.31KB | 3.08KB | ▼ 57.88% |