Benchmarks
Plugin footprint 83% 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.42MB] [CPU: ▼4.61ms] Passed 4 tests
A check of server-side resources used by EC Authorize.net
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 39.73 ▼1.37 |
Dashboard /wp-admin | 3.73 ▲0.43 | 48.08 ▼2.62 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 45.92 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 85.54 ▼13.80 |
Media Library /wp-admin/upload.php | 3.65 ▲0.43 | 36.13 ▲2.29 |
EC Authorize.net /wp-admin/admin.php?page=ec-authorize-net | 3.56 | 33.56 |
Recurring Subscription /wp-admin/admin.php?page=ec-subscriber-list | 3.56 | 31.72 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
EC Authorize.net: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲179 | 13.86 ▼0.49 | 8.77 ▲7.08 | 42.53 ▲3.02 |
Dashboard /wp-admin | 2,216 ▲38 | 5.48 ▼0.19 | 84.28 ▼18.77 | 38.15 ▼2.73 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 1.96 ▼0.07 | 35.28 ▼0.93 | 33.98 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.24 ▲0.02 | 647.29 ▼21.26 | 54.36 ▼19.18 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.19 ▲0.00 | 93.09 ▼4.56 | 43.34 ▼1.25 |
EC Authorize.net /wp-admin/admin.php?page=ec-authorize-net | 937 | 2.02 | 23.40 | 25.68 |
Recurring Subscription /wp-admin/admin.php?page=ec-subscriber-list | 795 | 2.00 | 22.43 | 26.42 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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)
Everything seems fine, however 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
- 28× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
require_once(PHPUnit/Framework.php): failed to open stream: No such file or directory in wp-content/plugins/ec-authorizenet/anet_php_sdk/tests/AuthorizeNet_Test_Config.php on line 43
- > PHP Warning
require_once(PHPUnit/Framework.php): failed to open stream: No such file or directory in wp-content/plugins/ec-authorizenet/anet_php_sdk/tests/AuthorizeNet_Test_Config.php on line 43
- > PHP Fatal error
require_once(): Failed opening required 'PHPUnit/Framework.php' (include_path='.:/usr/share/php') in wp-content/plugins/ec-authorizenet/anet_php_sdk/tests/AuthorizeNet_Test_Config.php on line 43
- > PHP Warning
require_once(PHPUnit/Framework.php): failed to open stream: No such file or directory in wp-content/plugins/ec-authorizenet/anet_php_sdk/tests/AuthorizeNet_Test_Config.php on line 43
- > PHP Fatal error
Uncaught Error: Class 'AuthorizeNetRequest' not found in wp-content/plugins/ec-authorizenet/anet_php_sdk/lib/AuthorizeNetAIM.php:42
- > PHP Fatal error
require_once(): Failed opening required 'PHPUnit/Framework.php' (include_path='.:/usr/share/php') in wp-content/plugins/ec-authorizenet/anet_php_sdk/tests/AuthorizeNet_Test_Config.php on line 43
- > PHP Fatal error
Uncaught Error: Class 'AuthorizeNetSIM_Form' not found in wp-content/plugins/ec-authorizenet/anet_php_sdk/lib/AuthorizeNetDPM.php:27
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/ec-authorizenet/anet_php_sdk/lib/AuthorizeNetSOAP.php:18
- > PHP Fatal error
require_once(): Failed opening required 'PHPUnit/Framework.php' (include_path='.:/usr/share/php') in wp-content/plugins/ec-authorizenet/anet_php_sdk/tests/AuthorizeNet_Test_Config.php on line 43
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ec-authorizenet/index.php:53
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
ec-authorizenet/index.php 92% from 13 tests
Analyzing the main PHP file in "EC Authorize.net" version 0.3.3
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("ec-authorizenet.php" instead of "index.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/ec-authorizenet/anet_php_sdk/tests/domain.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 594 | 1,221 | 3,268 |
Markdown | 8 | 193 | 0 | 501 |
HTML | 2 | 27 | 0 | 332 |
JavaScript | 1 | 3 | 5 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 6.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 1 | 2.63% |
▷ Concrete classes | 37 | 97.37% |
▷ Final classes | 0 | 0.00% |
Methods | 194 | |
▷ Static methods | 5 | 2.58% |
▷ Public methods | 172 | 88.66% |
▷ Protected methods | 18 | 9.28% |
▷ Private methods | 4 | 2.06% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 8 | 30.77% |
▷ Class constants | 18 | 69.23% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/payment-card-icon-.png | 10.12KB | 5.56KB | ▼ 45.07% |
images/payment-card-icon.png | 6.70KB | 4.71KB | ▼ 29.76% |