89% recurring-donations-moneris-gateway-give

Code Review | Recurring Donations - Moneris gateway for Give

WordPress plugin Recurring Donations - Moneris gateway for Give scored 89% from 54 tests.

About plugin

  • Plugin page: recurring-donatio...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 6.3.1
  • First release: Mar 16, 2021
  • Latest release: Aug 9, 2021
  • Number of updates: 4
  • Update frequency: every 36.7 days
  • Top authors: alexsmithbr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 400 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.53ms] Passed 4 tests

A check of server-side resources used by Recurring Donations - Moneris gateway for Give
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.41 ▼7.25
Dashboard /wp-admin3.31 ▲0.0146.50 ▼4.14
Posts /wp-admin/edit.php3.36 ▲0.0147.81 ▼1.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.46 ▼4.74
Media Library /wp-admin/upload.php3.24 ▲0.0135.90 ▼1.97

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Recurring Donations - Moneris gateway for Give
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.151.70 ▼0.4939.15 ▼8.55
Dashboard /wp-admin2,206 ▲155.91 ▲0.01108.02 ▲0.0737.56 ▼9.27
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0439.39 ▲2.4534.02 ▼3.15
Add New Post /wp-admin/post-new.php1,533 ▲423.40 ▲0.04645.02 ▼15.9456.05 ▼11.29
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.02101.75 ▼3.3844.73 ▼3.32

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: moneris, gateway, e-commerce, fundraiser, donation...

recurring-donations-moneris-gateway-give/give-recurring-moneris.php 77% from 13 tests

Analyzing the main PHP file in "Recurring Donations - Moneris gateway for Give" version 1.0.2
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("recurring-donations-moneris-gateway-give.php" instead of "give-recurring-moneris.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin194 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27390194

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity2.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin