84% dn-wc-ordine-minimo

Code Review | DN WC Minimo Ordine

WordPress plugin DN WC Minimo Ordine scored84%from 54 tests.

About plugin

  • Plugin page: dn-wc-ordine-minimo
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 29, 2022
  • Latest release: Sep 6, 2023
  • Number of updates: 6
  • Update frequency: every 72.3 days
  • Top authors: digireturn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /259 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by DN WC Minimo Ordine
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.50 ▼3.13
Dashboard /wp-admin3.38 ▲0.0848.60 ▼0.62
Posts /wp-admin/edit.php3.50 ▲0.1450.25 ▲3.15
Add New Post /wp-admin/post-new.php5.96 ▲0.0894.57 ▲6.53
Media Library /wp-admin/upload.php3.30 ▲0.0835.46 ▼2.18
DN WC Minimo Ordine /wp-admin/admin.php?page=dn_wc_minimum_order_admin_page_manage3.2731.11

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

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

Browser metrics Passed 4 tests

A check of browser resources used by DN WC Minimo Ordine
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.29 ▼1.001.67 ▼0.5140.03 ▼4.16
Dashboard /wp-admin2,206 ▲214.84 ▼1.06107.84 ▲3.6239.77 ▼1.55
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0241.23 ▼0.4736.26 ▼0.73
Add New Post /wp-admin/post-new.php1,533 ▼923.05 ▲5.04660.20 ▲55.7353.63 ▼10.74
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0494.53 ▼5.5441.69 ▼0.93
DN WC Minimo Ordine /wp-admin/admin.php?page=dn_wc_minimum_order_admin_page_manage8792.0526.3129.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dn-wc-ordine-minimo/dn-wc-ordine-minimo.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Requires at least: Invalid version format
You can look at the official readme.txt

dn-wc-ordine-minimo/dn-wc-ordine-minimo.php 92% from 13 tests

The entry point to "DN WC Minimo Ordine" version 1.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin279 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1315205
PO File19718674

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin