Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼143.46ms] Passed 4 tests
Analyzing server-side resources used by Authorize.net - Simple Donations
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 34.74 ▲14.27 |
Dashboard /wp-admin | 3.13 ▲0.07 | 46.93 ▲3.65 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 45.52 ▼1.21 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 90.72 ▼578.78 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 35.43 ▲2.51 |
All Donation /wp-admin/edit.php?post_type=wds_donation | 3.12 | 34.11 |
Add New /wp-admin/post-new.php?post_type=wds_donation | 3.12 | 41.20 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Authorize.net - Simple Donations: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,772 ▲176 | 16.00 ▲0.33 | 8.06 ▼1.67 | 46.98 ▼2.82 |
Dashboard /wp-admin | 3,021 ▲90 | 5.91 ▲0.01 | 150.25 ▲5.67 | 116.09 ▲3.19 |
Posts /wp-admin/edit.php | 2,794 ▲55 | 2.85 ▲0.02 | 66.42 ▼1.64 | 84.36 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,718 ▲218 | 18.78 ▲0.07 | 366.35 ▼32.76 | 112.52 ▲5.96 |
Media Library /wp-admin/upload.php | 1,862 ▲55 | 5.02 ▼0.01 | 143.20 ▼4.90 | 120.46 ▲3.22 |
All Donation /wp-admin/edit.php?post_type=wds_donation | 1,451 | 2.76 | 60.31 | 77.22 |
Add New /wp-admin/post-new.php?post_type=wds_donation | 2,286 | 3.51 | 91.22 | 109.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/authorizenet-simple-donations/authorize-net-simple-donations.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: authoriznet, donation plugin, donation widget, authorizenet donation plugin
authorizenet-simple-donations/authorize-net-simple-donations.php 92% from 13 tests
This is the main PHP file of "Authorize.net - Simple Donations" version 2.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("authorizenet-simple-donations.php" instead of "authorize-net-simple-donations.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin321 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 89 | 13 | 321 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin