83% minmax-products-quantities

Code Review | MinMax Products Quantities

WordPress plugin MinMax Products Quantities scored83%from 54 tests.

About plugin

  • Plugin page: minmax-products-q...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5.1
  • WordPress version: 6.3.1
  • First release: Apr 29, 2016
  • Latest release: Apr 29, 2016
  • Number of updates: 4
  • Update frequency: every 55.8 days
  • Top authors: advertikon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,827 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.47ms] Passed 4 tests

A check of server-side resources used by MinMax Products Quantities
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0938.17 ▲1.88
Dashboard /wp-admin3.38 ▲0.0845.05 ▼4.41
Posts /wp-admin/edit.php3.49 ▲0.1445.73 ▼4.39
Add New Post /wp-admin/post-new.php5.96 ▲0.0882.57 ▼3.35
Media Library /wp-admin/upload.php3.30 ▲0.0735.81 ▼1.74

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for MinMax Products Quantities
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.25 ▼1.345.34 ▲3.3841.57 ▼4.71
Dashboard /wp-admin2,206 ▲145.87 ▲0.9399.38 ▼15.7240.00 ▼8.70
Posts /wp-admin/edit.php2,089 ▼01.98 ▲0.0140.03 ▼0.6435.77 ▲1.07
Add New Post /wp-admin/post-new.php1,532 ▲1023.12 ▲0.05595.84 ▼121.9261.52 ▼15.30
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0396.62 ▼5.9640.98 ▼3.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/minmax-products-quantities/adk_extended_stock.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

minmax-products-quantities/adk_extended_stock.php 69% from 13 tests

The entry point to "MinMax Products Quantities" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
  • Domain Path: Please prefix the domain path with a forward slash character ("/")
  • Main file name: The principal plugin file should be the same as the plugin slug ("minmax-products-quantities.php" instead of "adk_extended_stock.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 detected631 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5121309555
PO File1101041
JavaScript17035

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity14.57
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods34
▷ Static methods12.94%
▷ Public methods2985.29%
▷ Protected methods514.71%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG images were found in this plugin