83% montonio-for-woocommerce

Code Review | Montonio for WooCommerce

WordPress plugin Montonio for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: montonio-for-wooc...
  • Plugin version: 6.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 5, 2019
  • Latest release: Nov 21, 2023
  • Number of updates: 199
  • Update frequency: every 7.7 days
  • Top authors: montonio (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

7,000+ active /84,223 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.04MB] [CPU: ▼4.15ms] Passed 4 tests

Server-side resources used by Montonio for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.56 ▼4.10
Dashboard /wp-admin3.36 ▲0.0145.18 ▼14.03
Posts /wp-admin/edit.php3.41 ▲0.0547.74 ▼2.15
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.13 ▲3.71
Media Library /wp-admin/upload.php3.28 ▲0.0535.35 ▲3.69

Server storage [IO: ▲0.85MB] [DB: ▲0.31MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Montonio for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7514.22 ▼0.121.80 ▲0.0237.94 ▼6.42
Dashboard /wp-admin2,205 ▲305.58 ▼0.0887.15 ▼19.1441.70 ▲2.71
Posts /wp-admin/edit.php2,107 ▲41.94 ▲0.0040.03 ▼1.2936.67 ▼3.18
Add New Post /wp-admin/post-new.php1,533 ▲723.64 ▲0.44620.34 ▲17.3855.80 ▲7.93
Media Library /wp-admin/upload.php1,401 ▼24.20 ▲0.0796.99 ▼3.0445.51 ▲4.27

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

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

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/montonio-for-woocommerce/templates/montonio/pickup-point-select.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in montonio-for-woocommerce/assets to your readme.txt
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

montonio-for-woocommerce/montonio.php 85% from 13 tests

The main PHP script in "Montonio for WooCommerce" version 6.2.1 is automatically included on every request by WordPress
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.5" instead of "4.0.0")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("montonio-for-woocommerce.php" instead of "montonio.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin13,602 lines of code in 84 files:
LanguageFilesBlank linesComment linesLines of code
PHP521,5822,2206,901
PO File82,2453,4955,555
JavaScript1011816533
CSS13546431
Sass1420182

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity16.66
▷ Minimum class complexity1.00
▷ Maximum class complexity175.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes50
▷ Abstract classes12.00%
▷ Concrete classes4998.00%
▷ Final classes00.00%
Methods424
▷ Static methods5813.68%
▷ Public methods32275.94%
▷ Protected methods8520.05%
▷ Private methods174.01%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants57
▷ Global constants35.26%
▷ Class constants5494.74%
▷ Public constants54100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
financing/assets/images/montonio.png14.59KB5.97KB▼ 59.07%