84% delyvax

Code Review | Delyva

WordPress plugin Delyva scored84%from 54 tests.

About plugin

  • Plugin page: delyvax
  • Plugin version: 1.1.51
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1
  • WordPress version: 6.3.1
  • First release: Apr 20, 2021
  • Latest release: Jul 12, 2023
  • Number of updates: 47
  • Update frequency: every 17.3 days
  • Top authors: delyva (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,237 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.41MB] [CPU: ▼11.17ms] Passed 4 tests

An overview of server-side resources used by Delyva
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2847.88 ▲7.04
Dashboard /wp-admin3.58 ▲0.2859.35 ▲8.03
Posts /wp-admin/edit.php3.69 ▲0.3452.09 ▼3.71
Add New Post /wp-admin/post-new.php3.43 ▼2.4642.38 ▼50.81
Media Library /wp-admin/upload.php3.50 ▲0.2741.78 ▲2.81

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Delyva
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.10 ▼0.251.84 ▼0.0344.10 ▲1.57
Dashboard /wp-admin2,198 ▲185.62 ▼0.0387.21 ▼5.6842.77 ▲3.33
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0333.43 ▼7.1239.36 ▲3.66
Add New Post /wp-admin/post-new.php45 ▼1,4830.42 ▼20.470.08 ▼729.229.13 ▼64.53
Media Library /wp-admin/upload.php1,397 ▼34.27 ▲0.1597.29 ▼21.7161.18 ▲13.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/delyvax/includes/delyvax-webhook.php
    • > /wp-content/plugins/delyvax/delyvax.php
    • > /wp-content/plugins/delyvax/functions.php
    • > /wp-content/plugins/delyvax/includes/shipping-widget.php
    • > /wp-content/plugins/delyvax/includes/delyvax-shipping.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: delivery, shipping, courier, delyva

delyvax/delyvax.php 92% from 13 tests

The main file in "Delyva" v. 1.1.51 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 158 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,898 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP75504742,898

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 105)
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity42.50
▷ Minimum class complexity3.00
▷ Maximum class complexity126.00
Average method complexity5.88
▷ Minimum method complexity1.00
▷ Maximum method complexity105.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods34
▷ Static methods1235.29%
▷ Public methods2779.41%
▷ Protected methods720.59%
▷ Private methods00.00%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin