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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▼4.53ms] Passed 4 tests
A check of server-side resources used by Verified-Pay
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 36.77 ▼1.25 |
Dashboard /wp-admin | 3.75 ▲0.41 | 47.53 ▼12.24 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 49.96 ▲2.24 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 95.47 ▼5.29 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 37.38 ▲0.65 |
Verified-Pay /wp-admin/options-general.php?page=verifiedpay | 3.61 | 35.07 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 70 new files
Database: no new tables, 9 new options
New WordPress options |
---|
verifiedpay_version |
db_upgraded |
_verifiedpay_last_check_transactions |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
verifiedpay_settings |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Verified-Pay
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲185 | 13.65 ▼0.63 | 11.05 ▲9.29 | 40.88 ▼6.05 |
Dashboard /wp-admin | 2,227 ▲39 | 4.83 ▼1.05 | 111.70 ▼3.14 | 43.33 ▼0.63 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.16 ▲0.16 | 41.47 ▲4.80 | 36.15 ▲4.18 |
Add New Post /wp-admin/post-new.php | 1,554 ▲35 | 23.04 ▼0.06 | 676.45 ▼12.17 | 60.17 ▲7.49 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.19 ▼0.01 | 100.70 ▼4.14 | 46.11 ▲0.69 |
Verified-Pay /wp-admin/options-general.php?page=verifiedpay | 1,075 | 2.38 | 41.02 | 25.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- _verifiedpay_last_check_transactions
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/verified-pay-credit-card-payments/tpl/client/woocommerce/payFrame.php
- > /wp-content/plugins/verified-pay-credit-card-payments/tpl/client/woocommerce/paidMsg.php
- > /wp-content/plugins/verified-pay-credit-card-payments/tpl/adminNotice.php
- > /wp-content/plugins/verified-pay-credit-card-payments/tpl/message.php
- > /wp-content/plugins/verified-pay-credit-card-payments/tpl/client/RestrictContentPro/payFrame.php
- > /wp-content/plugins/verified-pay-credit-card-payments/tpl/client/woocommerce/payButton.php
- > /wp-content/plugins/verified-pay-credit-card-payments/tpl/admin/mainSettings.php
- > /wp-content/plugins/verified-pay-credit-card-payments/tpl/cookieConfirm.php
- > /wp-content/plugins/verified-pay-credit-card-payments/tpl/admin/mainSettingsWrap.php
- > /wp-content/plugins/verified-pay-credit-card-payments/verified-pay-credit-card-payments.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant VPAY__PLUGIN_DIR - assumed 'VPAY__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/verified-pay-credit-card-payments/classes/VerifiedPay.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function Vpay\\VerifiedPay\\add_filter() in wp-content/plugins/verified-pay-credit-card-payments/integrations/RestrictContentPro/restrict-entry.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verified-pay-credit-card-payments/integrations/woocommerce/wc-entry.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/verified-pay-credit-card-payments/tpl/admin/metaboxAdvanced.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/verified-pay-credit-card-payments/tpl/client/woocommerce/paySelectForm.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/verified-pay-credit-card-payments/tpl/admin/metaboxAccount.php:2
- > PHP Fatal error
require_once(): Failed opening required 'VPAY__PLUGIN_DIRclasses/Settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/verified-pay-credit-card-payments/classes/VerifiedPay.php on line 5
- > PHP Warning
require_once(VPAY__PLUGIN_DIRclasses/Settings.php): failed to open stream: No such file or directory in wp-content/plugins/verified-pay-credit-card-payments/classes/VerifiedPay.php on line 5
- > PHP Warning
Use of undefined constant VPAY__PLUGIN_DIR - assumed 'VPAY__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/verified-pay-credit-card-payments/classes/gateway/VerifiedPayGateway.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/verified-pay-credit-card-payments/integrations/woocommerce/WcGateway.php:5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: creditcard, ecommerce, shop, blog, store...
verified-pay-credit-card-payments/verified-pay-credit-card-payments.php 85% from 13 tests
The main PHP file in "Verified-Pay" ver. 1.0.28 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
- 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 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,705 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 509 | 922 | 2,461 |
TypeScript | 13 | 154 | 158 | 809 |
CSS | 2 | 66 | 17 | 347 |
JSON | 2 | 0 | 0 | 46 |
JavaScript | 2 | 9 | 29 | 32 |
Markdown | 1 | 6 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 178 | |
▷ Static methods | 27 | 15.17% |
▷ Public methods | 150 | 84.27% |
▷ Protected methods | 25 | 14.04% |
▷ Private methods | 3 | 1.69% |
Functions | 12 | |
▷ Named functions | 3 | 25.00% |
▷ Anonymous functions | 9 | 75.00% |
Constants | 22 | |
▷ Global constants | 3 | 13.64% |
▷ Class constants | 19 | 86.36% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/verified_48.png | 2.42KB | 1.25KB | ▼ 48.32% |
img/verified_16.png | 1.32KB | 0.34KB | ▼ 74.15% |
img/verified_64.png | 2.96KB | 1.35KB | ▼ 54.28% |
img/cc_32.png | 6.59KB | 2.75KB | ▼ 58.32% |
img/verified_32.png | 1.82KB | 0.78KB | ▼ 57.14% |