10% woo-instamojo

Code Review | Instamojo for WooCommerce

WordPress plugin Instamojo for WooCommerce scored 10% from 54 tests.

About plugin

  • Plugin page: woo-instamojo
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 26, 2015
  • Latest release: Jul 31, 2023
  • Number of updates: 67
  • Update frequency: every 45.5 days
  • Top authors: instamojo (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

10,000+ active / 157,288 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > User error in wp-content/plugins/woo-instamojo/woo-instamojo.php+60
    Instamojo Plugin requires WooCommerce to be installed and activated first!

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

Server-side resources used by Instamojo for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.95 ▼4.92
Dashboard /wp-admin3.31 ▲0.0144.71 ▼6.17
Posts /wp-admin/edit.php3.36 ▲0.0147.99 ▲1.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.44 ▼1.73
Media Library /wp-admin/upload.php3.23 ▲0.0137.80 ▲3.18

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

Input-output and database impact of this plugin
This plugin was installed successfully
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

An overview of browser requirements for Instamojo for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.391.81 ▲0.0138.96 ▼5.97
Dashboard /wp-admin2,209 ▲214.88 ▼1.00105.48 ▲2.2143.15 ▲2.26
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0238.06 ▲2.9535.13 ▲0.04
Add New Post /wp-admin/post-new.php1,542 ▲2818.42 ▲0.82642.12 ▼11.4250.23 ▼8.14
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.07100.17 ▲1.7844.85 ▲1.88

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
You can look at the official readme.txt

woo-instamojo/woo-instamojo.php Passed 13 tests

The principal PHP file in "Instamojo for WooCommerce" v. 1.1.3 is loaded by WordPress automatically on each request
89 characters long description:
Instamojo Payment Gateway for WooCommerce. Instamojo lets you collect payments instantly.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin542 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP810144542

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.20
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2692.86%
▷ Protected methods00.00%
▷ Private methods27.14%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin