89% deliforce-shipping

Code Review | Deliforce Shipping

WordPress plugin Deliforce Shipping scored89%from 54 tests.

About plugin

  • Plugin page: deliforce-shipping
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.8.0
  • WordPress version: 6.3.1
  • First release: Jul 3, 2020
  • Latest release: Aug 17, 2022
  • Number of updates: 20
  • Update frequency: every 38.8 days
  • Top authors: deliforce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /751 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.15MB] [CPU: ▼7.53ms] Passed 4 tests

Analyzing server-side resources used by Deliforce Shipping
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1640.49 ▼2.78
Dashboard /wp-admin3.47 ▲0.1350.57 ▼14.65
Posts /wp-admin/edit.php3.58 ▲0.2352.46 ▲4.07
Add New Post /wp-admin/post-new.php6.05 ▲0.1685.28 ▼16.77
Media Library /wp-admin/upload.php3.39 ▲0.1642.04 ▲6.22

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Deliforce Shipping
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲5413.14 ▼1.614.53 ▲2.6040.00 ▼2.48
Dashboard /wp-admin2,221 ▲184.88 ▲0.01114.47 ▲3.0443.45 ▲0.00
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0340.38 ▲4.1738.05 ▲2.43
Add New Post /wp-admin/post-new.php1,545 ▼023.30 ▲0.07674.26 ▼1.0052.39 ▼2.66
Media Library /wp-admin/upload.php1,397 ▼04.26 ▲0.01101.29 ▼1.0541.27 ▼7.24

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
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Contributors: Contributors not specified
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in deliforce-shipping/assets to your readme.txt
You can take inspiration from this readme.txt

deliforce-shipping/deliforce.php 77% from 13 tests

This is the main PHP file of "Deliforce Shipping" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("deliforce-shipping.php" instead of "deliforce.php")
  • Domain Path: The domain path points to a folder that does not exist ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin799 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110065799

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions1688.89%
▷ Anonymous functions211.11%
Constants0
▷ Global constants00.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 files were detected