10% mijireh-checkout-for-wp-deals

Code Review | Mijireh Checkout for WP Deals

WordPress plugin Mijireh Checkout for WP Deals scored10%from 54 tests.

About plugin

  • Plugin page: mijireh-checkout-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 6.3.1
  • First release: Aug 1, 2013
  • Latest release: Aug 2, 2013
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: patsatech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /852 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/mijireh-checkout-for-wp-deals/gateway-mijireh.php+224
    syntax error, unexpected 'new' (T_NEW)

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.93ms] Passed 4 tests

A check of server-side resources used by Mijireh Checkout for WP Deals
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.52 ▲0.38
Dashboard /wp-admin3.31 ▲0.0049.13 ▼3.20
Posts /wp-admin/edit.php3.36 ▲0.0048.08 ▼4.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.28 ▼0.62
Media Library /wp-admin/upload.php3.23 ▲0.0041.67 ▲6.34

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

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

Browser metrics Passed 4 tests

Mijireh Checkout for WP Deals: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.26 ▲0.011.80 ▼0.1546.91 ▲2.45
Dashboard /wp-admin2,198 ▲245.64 ▲0.0192.21 ▼7.6139.79 ▼5.81
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0240.42 ▲3.6838.33 ▼0.19
Add New Post /wp-admin/post-new.php1,545 ▲1923.59 ▲5.82658.78 ▲11.2855.75 ▼1.99
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.02114.35 ▲12.0946.01 ▲1.28

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/mijireh-checkout-for-wp-deals/gateway-mijireh.php on line 224

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Configuration Screen of Mijireh Checkout) image required
You can look at the official readme.txt

mijireh-checkout-for-wp-deals/gateway-mijireh.php 77% from 13 tests

"Mijireh Checkout for WP Deals" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/lang")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mijireh-checkout-for-wp-deals.php" instead of "gateway-mijireh.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,122 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8237209928
CSS111153
JavaScript18241

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.34
Average class complexity5.41
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods78
▷ Static methods33.85%
▷ Public methods6482.05%
▷ Protected methods56.41%
▷ Private methods911.54%
Functions4
▷ Named functions4100.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
4 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png51.96KB27.83KB▼ 46.43%
assets/images/mijireh-logo.png5.66KB5.73KB0.00%
assets/images/credit_cards.png4.89KB1.62KB▼ 66.81%
assets/images/mijireh.png1.82KB1.48KB▼ 18.71%