90% integrate-charitable-instamojo

Code Review | Charitable - Instamojo Payment Gateway

WordPress plugin Charitable - Instamojo Payment Gateway scored90%from 54 tests.

About plugin

  • Plugin page: integrate-charita...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Jul 16, 2018
  • Latest release: Feb 14, 2023
  • Number of updates: 28
  • Update frequency: every 59.8 days
  • Top authors: gautammkgarg (71.43%)knitpay (32.14%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /16,811 total downloads

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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.97ms] Passed 4 tests

Server-side resources used by Charitable - Instamojo Payment Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.18 ▲0.93
Dashboard /wp-admin3.35 ▲0.0450.13 ▼1.96
Posts /wp-admin/edit.php3.46 ▲0.1048.25 ▼0.12
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.19 ▼14.71
Media Library /wp-admin/upload.php3.27 ▲0.0435.95 ▲2.20

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Charitable - Instamojo Payment Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.45 ▲0.081.75 ▼0.3144.26 ▲1.58
Dashboard /wp-admin2,198 ▲185.55 ▼0.1187.18 ▼11.1740.26 ▼7.66
Posts /wp-admin/edit.php2,106 ▲31.97 ▼0.0536.85 ▼2.6536.82 ▼1.69
Add New Post /wp-admin/post-new.php1,543 ▲623.27 ▲5.00617.25 ▼22.8958.52 ▼6.80
Media Library /wp-admin/upload.php1,409 ▲64.21 ▼0.0298.72 ▼4.6044.95 ▲0.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: instamojo, indian payment gateway, charity, charitable, donations

integrate-charitable-instamojo/integrate-charitable-instamojo.php 92% from 13 tests

The main file in "Charitable - Instamojo Payment Gateway" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin858 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9221505858

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.86
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods51
▷ Static methods1019.61%
▷ Public methods4282.35%
▷ Protected methods11.96%
▷ Private methods815.69%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin