89% simple-minmax

Code Review | Simple MinMax

WordPress plugin Simple MinMax scored89%from 54 tests.

About plugin

  • Plugin page: simple-minmax
  • Plugin version: 3.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 20, 2022
  • Latest release: Aug 22, 2023
  • Number of updates: 32
  • Update frequency: every 12.5 days
  • Top authors: nicnetza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /440 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Simple MinMax
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.19 ▼4.29
Dashboard /wp-admin3.31 ▲0.0049.33 ▲2.07
Posts /wp-admin/edit.php3.36 ▲0.0046.47 ▼0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.81 ▼10.59
Media Library /wp-admin/upload.php3.23 ▲0.0036.24 ▲2.14

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Simple MinMax: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.61 ▼0.824.42 ▲2.4939.44 ▼1.58
Dashboard /wp-admin2,206 ▲185.90 ▲0.05109.44 ▼0.8541.77 ▲2.76
Posts /wp-admin/edit.php2,089 ▼01.96 ▼0.0633.81 ▼7.6433.50 ▼2.42
Add New Post /wp-admin/post-new.php1,514 ▼3117.48 ▼1.09744.35 ▲139.1856.45 ▲2.43
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0395.13 ▼2.4141.52 ▲0.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: hide category, per category maximum, per category minimum, product limit, minimum...

simple-minmax/simpleminmax-plugin.php 85% from 13 tests

"Simple MinMax" version 3.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 158 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-minmax.php" instead of "simpleminmax-plugin.php")

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
Good job! No executable or dangerous file extensions detected419 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP210476419

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity34.50
▷ Minimum class complexity3.00
▷ Maximum class complexity66.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin