94% authorizenet-simple-donations

Code Review | Authorize.net - Simple Donations

WordPress plugin Authorize.net - Simple Donations scored 94% from 54 tests.

About plugin

  • Plugin page: authorizenet-simp...
  • Plugin version: 2.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 5.8.1
  • First release: Jul 17, 2014
  • Latest release: Apr 11, 2021
  • Number of updates: 17
  • Update frequency: every 144.7 days
  • Top authors: efficientninja (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 5,705 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1834.74 ▲14.27
Dashboard /wp-admin3.13 ▲0.0746.93 ▲3.65
Posts /wp-admin/edit.php3.18 ▲0.0745.52 ▼1.21
Add New Post /wp-admin/post-new.php5.49 ▲0.0590.72 ▼578.78
Media Library /wp-admin/upload.php3.08 ▲0.0735.43 ▲2.51
All Donation /wp-admin/edit.php?post_type=wds_donation3.1234.11
Add New /wp-admin/post-new.php?post_type=wds_donation3.1241.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,772 ▲17616.00 ▲0.338.06 ▼1.6746.98 ▼2.82
Dashboard /wp-admin3,021 ▲905.91 ▲0.01150.25 ▲5.67116.09 ▲3.19
Posts /wp-admin/edit.php2,794 ▲552.85 ▲0.0266.42 ▼1.6484.36 ▲1.42
Add New Post /wp-admin/post-new.php1,718 ▲21818.78 ▲0.07366.35 ▼32.76112.52 ▲5.96
Media Library /wp-admin/upload.php1,862 ▲555.02 ▼0.01143.20 ▼4.90120.46 ▲3.22
All Donation /wp-admin/edit.php?post_type=wds_donation1,4512.7660.3177.22
Add New /wp-admin/post-new.php?post_type=wds_donation2,2863.5191.22109.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP18913321

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 code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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