10% mijireh-checkout-for-gravity-forms

Code Review | Mijireh Checkout for Gravity Forms

WordPress plugin Mijireh Checkout for Gravity Forms scored10%from 54 tests.

About plugin

  • Plugin page: mijireh-checkout-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Oct 16, 2014
  • Latest release: Oct 16, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: patsatech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,228 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/mijireh-checkout-for-gravity-forms/mijireh.php+1739
    Non-static method GFMijirehCheckout::install_slurp_page() should not be called statically

Server metrics [RAM: ▲0.43MB] [CPU: ▼0.86ms] Passed 4 tests

Analyzing server-side resources used by Mijireh Checkout for Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4345.38 ▲1.09
Dashboard /wp-admin3.73 ▲0.4354.36 ▼2.81
Posts /wp-admin/edit.php3.85 ▲0.4953.90 ▲1.80
Add New Post /wp-admin/post-new.php6.32 ▲0.4399.03 ▼3.53
Media Library /wp-admin/upload.php3.66 ▲0.4340.88 ▲4.73

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
slurp_page_installed
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Mijireh Checkout for Gravity Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.57 ▲0.221.77 ▲0.2345.34 ▲1.23
Dashboard /wp-admin2,195 ▲185.58 ▼0.0591.25 ▼4.8338.24 ▼1.84
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0639.42 ▲0.8534.60 ▼0.44
Add New Post /wp-admin/post-new.php1,526 ▼223.05 ▼0.03666.77 ▼34.0350.63 ▼12.20
Media Library /wp-admin/upload.php1,400 ▲34.18 ▲0.0698.82 ▼24.7442.14 ▼6.66

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • slurp_page_installed

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mijireh-checkout-for-gravity-forms/mijireh.php:20

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 86% 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:
  • Screenshots: These screenshots require images: #1 (Mijireh Checkout Settings Page), #2 (Mijireh Checkout Transaction Settings Page), #3 (Mijireh Checkout Entry Details Page), #4 (Mijireh Checkout Stats Page)
Please take inspiration from this readme.txt

mijireh-checkout-for-gravity-forms/mijireh.php 77% from 13 tests

The main PHP script in "Mijireh Checkout for Gravity Forms" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mijireh-checkout-for-gravity-forms.php" instead of "mijireh.php")
  • Domain Path: The domain path points to a folder that does not exist ("/lang/")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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
No dangerous file extensions were detected3,186 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP97032752,903
CSS111153
JavaScript33114130

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.32
▷ Minimum class complexity1.00
▷ Maximum class complexity288.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods146
▷ Static methods7853.42%
▷ Public methods10169.18%
▷ Protected methods64.11%
▷ Private methods3926.71%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
16 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/mijireh.png1.82KB1.48KB▼ 18.71%
assets/images/mijireh-checkout-logo.png55.23KB14.35KB▼ 74.02%
assets/images/remove.png3.32KB0.62KB▼ 81.33%
assets/images/mijireh-logo.png5.66KB5.73KB0.00%
assets/images/active1.png0.71KB0.63KB▼ 11.28%