94% merch38-for-wp

Code Review | Merch38 for WP

WordPress plugin Merch38 for WP scored 94% from 54 tests.

About plugin

  • Plugin page: merch38-for-wp
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 5.9.2
  • First release: Feb 20, 2020
  • Latest release: Feb 20, 2020
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: merch38 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 239 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼318.62ms] Passed 4 tests

A check of server-side resources used by Merch38 for WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0988.78 ▲33.37
Dashboard /wp-admin3.46 ▲0.0537.66 ▼40.73
Posts /wp-admin/edit.php3.68 ▲0.0439.56 ▲1.42
Add New Post /wp-admin/post-new.php6.92 ▼0.04101.03 ▼1,228.89
Media Library /wp-admin/upload.php3.33 ▲0.0425.05 ▼6.27

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Merch38 for WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,953 ▲23117.63 ▲2.0058.37 ▲51.803.10 ▲0.85
Dashboard /wp-admin2,925 ▲716.24 ▲0.05121.80 ▼11.71181.18 ▲16.90
Posts /wp-admin/edit.php2,736 ▲663.17 ▼0.0887.81 ▼11.51144.96 ▼3.51
Add New Post /wp-admin/post-new.php1,808 ▲5624.26 ▲3.47423.96 ▼40.69185.85 ▲23.75
Media Library /wp-admin/upload.php1,743 ▲485.61 ▲0.10127.86 ▼17.39205.81 ▲10.34

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/merch38-for-wp/inc/admin-settings-page.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: t-shirts, merch38, merch, widget, e-commerce

merch38-for-wp/m38wp.php 85% from 13 tests

The main file in "Merch38 for WP" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("merch38-for-wp.php" instead of "m38wp.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin302 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File10511

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants6100.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
No PNG images were found in this plugin