84% delyva-com

Code Review | Delyva

WordPress plugin Delyva scored84%from 54 tests.

About plugin

  • Plugin page: delyva-com
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3.3
  • WordPress version: 6.3.1
  • First release: Mar 26, 2019
  • Latest release: Apr 26, 2021
  • Number of updates: 5
  • Update frequency: every 152.2 days
  • Top authors: delyva (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /931 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.23MB] [CPU: ▼14.99ms] Passed 4 tests

Server-side resources used by Delyva
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.77 ▼0.6915.28 ▼27.73
Dashboard /wp-admin3.31 ▲0.0145.34 ▼7.12
Posts /wp-admin/edit.php3.12 ▼0.2329.84 ▼15.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.03 ▼9.50
Media Library /wp-admin/upload.php3.23 ▲0.0036.87 ▼1.13

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Delyva
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.71 ▼0.891.57 ▼0.4140.38 ▼3.93
Dashboard /wp-admin2,203 ▲124.82 ▼0.0699.73 ▼5.9938.74 ▼4.48
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0134.10 ▼1.6633.48 ▲1.97
Add New Post /wp-admin/post-new.php1,534 ▲523.26 ▲5.20656.35 ▲38.0752.24 ▼6.27
Media Library /wp-admin/upload.php1,382 ▼94.17 ▼0.1293.01 ▼7.8538.50 ▼4.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/delyva-com/includes/shipping-widget.php
    • > /wp-content/plugins/delyva-com/delyva.php
    • > /wp-content/plugins/delyva-com/includes/delyva-shipping.php
    • > /wp-content/plugins/delyva-com/functions.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
6 plugin tags: next day delivery, delivery, delyva, shipping, same day delivery...

delyva-com/delyva.php 92% from 13 tests

The primary PHP file in "Delyva" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("delyva-com.php" instead of "delyva.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin515 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP65637515

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity15.67
▷ Minimum class complexity3.00
▷ Maximum class complexity40.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods1161.11%
▷ Protected methods738.89%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin