84% wc-pedido-minimo

Code Review | WooCommerce Pedido Mínimo

WordPress plugin WooCommerce Pedido Mínimo scored84%from 54 tests.

About plugin

  • Plugin page: wc-pedido-minimo
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Jan 11, 2018
  • Latest release: Sep 22, 2020
  • Number of updates: 100
  • Update frequency: every 9.9 days
  • Top authors: art2web (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

3,000+ active /19,312 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by WooCommerce Pedido Mínimo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.80 ▼5.20
Dashboard /wp-admin3.31 ▲0.0044.83 ▼3.95
Posts /wp-admin/edit.php3.36 ▲0.0046.03 ▲1.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.43 ▼48.43
Media Library /wp-admin/upload.php3.23 ▲0.0033.32 ▼0.38

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Pedido Mínimo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.24 ▼1.141.88 ▼0.0344.39 ▼1.31
Dashboard /wp-admin2,200 ▲125.80 ▼0.07103.32 ▼17.3240.77 ▼3.35
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0135.55 ▼1.6731.45 ▼3.89
Add New Post /wp-admin/post-new.php1,533 ▲1923.47 ▲0.09647.60 ▲14.6148.90 ▼7.58
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0394.82 ▼6.7041.22 ▼1.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 | 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-pedido-minimo/inc/load-pedido-minimo.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-pedido-minimo/inc/load-assets.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: pedido minimo, woocommerce, minimum order, pedido mnimo, plugin woocommerce

wc-pedido-minimo/init.php 85% from 13 tests

The primary PHP file in "WooCommerce Pedido Mínimo" version 2.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-pedido-minimo.php" instead of "init.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 246 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin564 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File48585278
PHP43813271
CSS10015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/assets/images/art2web.png2.77KB1.82KB▼ 34.46%