83% mijireh-checkout-for-jigoshop

Code Review | Mijireh Checkout for Jigoshop

WordPress plugin Mijireh Checkout for Jigoshop scored83%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: 7
  • Update frequency: every 0.1 days
  • Top authors: patsatech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /860 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.62ms] Passed 4 tests

An overview of server-side resources used by Mijireh Checkout for Jigoshop
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.90 ▼1.73
Dashboard /wp-admin3.37 ▲0.0652.90 ▲3.28
Posts /wp-admin/edit.php3.42 ▲0.0649.81 ▼1.98
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.19 ▼2.03
Media Library /wp-admin/upload.php3.29 ▲0.0650.18 ▲8.06

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 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

Checking browser requirements for Mijireh Checkout for Jigoshop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.101.87 ▲0.1841.46 ▼5.20
Dashboard /wp-admin2,206 ▲154.85 ▼1.08117.46 ▲8.5848.55 ▲10.40
Posts /wp-admin/edit.php2,089 ▼61.97 ▼0.0738.47 ▼10.3234.45 ▼8.45
Add New Post /wp-admin/post-new.php1,533 ▼123.29 ▲0.13658.08 ▼96.8474.57 ▲11.43
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.08104.40 ▼36.8043.31 ▼5.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mijireh-checkout-for-jigoshop/gateway-mijireh.php:16

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 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Configuration Screen of Mijireh Checkout)
You can take inspiration from this readme.txt

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

The main PHP script in "Mijireh Checkout for Jigoshop" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("mijireh-checkout-for-jigoshop.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
  • Domain Path: The domain path folder does not exist ("/lang")

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
No dangerous file extensions were detected1,152 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8238207958
CSS111153
JavaScript18241

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity5.48
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods77
▷ Static methods33.90%
▷ Public methods6280.52%
▷ Protected methods67.79%
▷ Private methods911.69%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png10.52KB6.17KB▼ 41.35%
assets/images/mijireh.png1.82KB1.48KB▼ 18.71%
assets/images/mijireh-logo.png5.66KB5.73KB0.00%
assets/images/mijireh-checkout-logo.png55.23KB14.35KB▼ 74.02%
assets/images/credit_cards.png4.89KB1.62KB▼ 66.81%