Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.11ms] Passed 4 tests
This is a short check of server-side resources used by Hannan Authorize.net AIM - WooCommerce Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 36.24 ▼1.52 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.02 ▲3.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.54 ▼3.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.28 ▼1.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.16 ▼1.81 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Hannan Authorize.net AIM - WooCommerce Gateway: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.27 ▼1.03 | 1.66 ▼0.17 | 42.15 ▲2.36 |
Dashboard /wp-admin | 2,203 ▲14 | 5.79 ▲0.87 | 100.23 ▼20.85 | 40.53 ▼2.31 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▲0.04 | 34.17 ▼5.92 | 36.32 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.28 ▲0.01 | 656.05 ▲27.97 | 49.34 ▼6.64 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.21 ▼0.03 | 100.49 ▼1.35 | 44.53 ▼1.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hannan-woocommerce-authorizenet-aim-payment-gateway/hannan-authorize.net-aim.php:12
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/hannan-woocommerce-authorizenet-aim-payment-gateway/hannan-authorize.net-aim-gateway.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== hannan-woocommerce-authorizenet-aim-payment-gateway ===
) - Screenshots: Screenshot #1 (assets/screenshot.png) image required
hannan-woocommerce-authorizenet-aim-payment-gateway/hannan-authorize.net-aim.php 92% from 13 tests
The entry point to "Hannan Authorize.net AIM - WooCommerce Gateway" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hannan-woocommerce-authorizenet-aim-payment-gateway.php" instead of "hannan-authorize.net-aim.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin163 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 45 | 66 | 163 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot.PNG | 29.86KB | 11.20KB | ▼ 62.50% |
assets/screenshot-1.PNG | 29.86KB | 11.20KB | ▼ 62.50% |