89% deliveo

Code Review | Deliveo plugin for WordPress

WordPress plugin Deliveo plugin for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: deliveo
  • Plugin version: 2.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 25, 2018
  • Latest release: Oct 26, 2023
  • Number of updates: 56
  • Update frequency: every 37.5 days
  • Top authors: mavit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,078 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▼0.90ms] Passed 4 tests

This is a short check of server-side resources used by Deliveo plugin for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3338.20 ▲2.48
Dashboard /wp-admin3.69 ▲0.3945.30 ▼0.98
Posts /wp-admin/edit.php3.74 ▲0.3945.02 ▼2.16
Add New Post /wp-admin/post-new.php6.21 ▲0.3282.17 ▼2.92
Media Library /wp-admin/upload.php3.55 ▲0.3237.32 ▲5.74

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Deliveo plugin for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.21 ▲0.021.66 ▼0.2139.55 ▼5.48
Dashboard /wp-admin2,195 ▲215.50 ▼0.0581.07 ▼4.8341.10 ▲2.76
Posts /wp-admin/edit.php2,100 ▲32.11 ▲0.1236.49 ▼0.0632.42 ▼3.50
Add New Post /wp-admin/post-new.php1,528 ▲223.25 ▲0.12649.36 ▼27.1049.92 ▼3.19
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0492.54 ▼1.2242.12 ▼1.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Requires php: Version format is invalid
  • Screenshots: A description for screenshot #1 is required in deliveo/assets to your readme.txt
The official readme.txt might help

deliveo/wordpress-mav-it-deliveo.php 92% from 13 tests

The primary PHP file in "Deliveo plugin for WordPress" version 2.3.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("deliveo.php" instead of "wordpress-mav-it-deliveo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin6,102 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PO File191,5771,5774,287
PHP8274701,494
JavaScript3220166
CSS1261155

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.14
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods68
▷ Static methods11.47%
▷ Public methods5885.29%
▷ Protected methods00.00%
▷ Private methods1014.71%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/deliveo-icon.png2.10KB1.61KB▼ 23.45%
images/deliveo-package-barcode.png3.17KB2.00KB▼ 36.88%
images/deliveo-signature.png2.55KB1.31KB▼ 48.58%
images/deliveo-save.png1.80KB1.66KB▼ 7.81%