Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.47ms] Passed 4 tests
A check of server-side resources used by WP Service Payment Form With Authorize.net
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.69 ▼3.18 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.65 ▼0.84 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.62 ▼1.33 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.56 ▼9.29 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.18 ▼4.07 |
Server storage [IO: ▲0.21MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_wpspf_payment_entry |
wp_wpspf_form_fields |
wp_wpspf_payment_entry_meta |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Service Payment Form With Authorize.net
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.42 | 1.99 ▲0.43 | 43.85 ▲6.60 |
Dashboard /wp-admin | 2,198 ▲18 | 5.59 ▼0.06 | 85.27 ▼0.13 | 42.72 ▼1.14 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.06 | 36.09 ▲0.67 | 33.88 ▼0.00 |
Add New Post /wp-admin/post-new.php | 1,535 ▼2 | 18.28 ▼0.04 | 653.40 ▼0.10 | 65.49 ▼4.22 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.17 ▼0.01 | 94.34 ▼2.76 | 40.03 ▼4.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/wp-service-payment-form-with-authorizenet/wp-service-payment-form-with-authorizenet.php+126
Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP)
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_wpspf_payment_entry_meta
- wp_wpspf_payment_entry
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-service-payment-form-with-authorizenet/wp-service-payment-form-with-authorizenet.php
- > /wp-content/plugins/wp-service-payment-form-with-authorizenet/admin/settings-document.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-service-payment-form-with-authorizenet/functions.php:7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-service-payment-form-with-authorizenet/src/wpspf-payments-list.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-service-payment-form-with-authorizenet/admin/settings.php:218
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-service-payment-form-with-authorizenet/src/shortcodes.php:27
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-service-payment-form-with-authorizenet/src/wpspf-payment-details.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-service-payment-form-with-authorizenet/src/wpspf-payments-list.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-service-payment-form-with-authorizenet/src/form-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-service-payment-form-with-authorizenet/src/wpspf-payment-details.php:5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-service-payment-form-with-authorizenet/src/wpspf-payments-list.php on line 3
- > PHP Notice
Undefined index: wpspf_entry in wp-content/plugins/wp-service-payment-form-with-authorizenet/src/wpspf-payment-details.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Donate link: Invalid URI ("")
wp-service-payment-form-with-authorizenet/wp-service-payment-form-with-authorizenet.php 85% from 13 tests
The main PHP file in "WP Service Payment Form With Authorize.net" ver. 2.6.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
- Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,224 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 254 | 273 | 2,038 |
JavaScript | 2 | 18 | 12 | 156 |
CSS | 1 | 3 | 2 | 30 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/credit-card-logo.png | 15.14KB | 4.15KB | ▼ 72.59% |