84% mijireh-checkout-for-ithemes-exchange

Code Review | Mijireh Checkout for iThemes Exchange

WordPress plugin Mijireh Checkout for iThemes Exchange scored84%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: Jul 27, 2013
  • Latest release: Aug 5, 2013
  • Number of updates: 9
  • Update frequency: every 1.0 days
  • Top authors: patsatech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /791 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Mijireh Checkout for iThemes Exchange
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.40 ▼1.20
Dashboard /wp-admin3.32 ▲0.0139.89 ▼7.78
Posts /wp-admin/edit.php3.37 ▲0.0147.70 ▼1.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0176.04 ▼26.65
Media Library /wp-admin/upload.php3.24 ▲0.0134.03 ▼0.29

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mijireh Checkout for iThemes Exchange
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.24 ▼1.141.86 ▲0.2938.10 ▼4.00
Dashboard /wp-admin2,206 ▲184.86 ▼1.04112.97 ▲11.7445.20 ▲3.38
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0435.72 ▼4.2934.38 ▼0.73
Add New Post /wp-admin/post-new.php1,514 ▼1417.48 ▼0.96656.56 ▲49.1462.97 ▲3.09
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.06100.23 ▼3.3841.07 ▼3.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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
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
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mijireh-checkout-for-ithemes-exchange/init.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mijireh-checkout-for-ithemes-exchange/mijireh.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: payment gateway, ecommerce

mijireh-checkout-for-ithemes-exchange/mijireh.php 85% from 13 tests

"Mijireh Checkout for iThemes Exchange" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • 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
  • Main file name: Name the main plugin file the same as the plugin slug ("mijireh-checkout-for-ithemes-exchange.php" instead of "mijireh.php")

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
There were no executable files found in this plugin1,045 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP92842831,045

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.48
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods73
▷ Static methods34.11%
▷ Public methods5980.82%
▷ Protected methods56.85%
▷ Private methods912.33%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wizard-mijireh.png17.39KB4.55KB▼ 73.81%
images/mijireh50px.png7.65KB2.25KB▼ 70.63%