83% mijireh-checkout-for-marketpress

Code Review | Mijireh Checkout for MarketPress

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /953 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Mijireh Checkout for MarketPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.20 ▼2.00
Dashboard /wp-admin3.37 ▲0.0347.65 ▼12.70
Posts /wp-admin/edit.php3.49 ▲0.1349.12 ▲0.41
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.13 ▼4.70
Media Library /wp-admin/upload.php3.30 ▲0.0740.59 ▲6.31

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Mijireh Checkout for MarketPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.011.61 ▼0.0536.75 ▲0.43
Dashboard /wp-admin2,195 ▲215.51 ▼0.1583.46 ▼6.7439.61 ▼4.57
Posts /wp-admin/edit.php2,097 ▼62.01 ▲0.0335.18 ▼7.7936.37 ▼1.70
Add New Post /wp-admin/post-new.php1,526 ▼123.17 ▲0.28660.06 ▲68.8751.14 ▲4.02
Media Library /wp-admin/upload.php1,403 ▼04.16 ▼0.0495.63 ▼5.6943.11 ▼2.56

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
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mijireh-checkout-for-marketpress/mijireh.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Configuration Screen of Mijireh Checkout) image required
The official readme.txt might help

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

The main PHP file in "Mijireh Checkout for MarketPress" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("mijireh-checkout-for-marketpress.php" instead of "mijireh.php")
  • Domain Path: The domain path folder was not found ("/lang")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,235 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity5.74
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
▷ Static methods33.61%
▷ Public methods6983.13%
▷ Protected methods56.02%
▷ Private methods910.84%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ 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
5 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/mijireh-checkout-logo.png55.23KB14.35KB▼ 74.02%
screenshot-1.png71.34KB36.11KB▼ 49.39%
assets/images/mijireh.png1.82KB1.48KB▼ 18.71%
assets/images/credit_cards.png4.89KB1.62KB▼ 66.81%