84% woo-dhl-tracking-form

Code Review | Woo DHL Tracking Form

WordPress plugin Woo DHL Tracking Form scored 84% from 54 tests.

About plugin

  • Plugin page: woo-dhl-tracking-...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6.31+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.2
  • WordPress version: 6.3.1
  • First release: May 24, 2018
  • Latest release: May 11, 2019
  • Number of updates: 15
  • Update frequency: every 23.5 days
  • Top authors: mnording10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.69ms] Passed 4 tests

This is a short check of server-side resources used by Woo DHL Tracking Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1143.60 ▼3.81
Dashboard /wp-admin3.42 ▲0.1151.50 ▼5.92
Posts /wp-admin/edit.php3.53 ▲0.1748.90 ▼4.79
Add New Post /wp-admin/post-new.php6.00 ▲0.11100.12 ▼0.24
Media Library /wp-admin/upload.php3.34 ▲0.1039.40 ▲0.77

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Woo DHL Tracking Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼013.65 ▲0.452.08 ▼5.2540.29 ▼4.05
Dashboard /wp-admin2,206 ▼04.84 ▼0.02102.69 ▼10.6738.04 ▼4.33
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0536.55 ▲0.1433.43 ▲0.82
Add New Post /wp-admin/post-new.php1,534 ▲623.08 ▼0.11682.13 ▼4.1456.93 ▼8.79
Media Library /wp-admin/upload.php1,382 ▼04.19 ▲0.0497.62 ▼4.3339.95 ▼2.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woo-dhl-tracking-form/functions.php:266

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: You can take inspiration from this readme.txt

woo-dhl-tracking-form/functions.php 92% from 13 tests

The main file in "Woo DHL Tracking Form" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-dhl-tracking-form.php" instead of "functions.php")

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
Everything looks great! No dangerous files found in this plugin576 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44295456
PO File13029101
JavaScript11019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods2266.67%
▷ Protected methods00.00%
▷ Private methods1133.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin