90% datadev-jadlog-for-woocommerce

Code Review | Datadev - Jadlog for WooCommerce

WordPress plugin Datadev - Jadlog for WooCommerce scored 90% from 54 tests.

About plugin

  • Plugin page: datadev-jadlog-fo...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Jul 28, 2020
  • Latest release: Oct 18, 2020
  • Number of updates: 6
  • Update frequency: every 13.5 days
  • Top authors: datadev (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active / 2,662 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.22ms] Passed 4 tests

Analyzing server-side resources used by Datadev - Jadlog for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.08 ▲0.96
Dashboard /wp-admin3.31 ▲0.0145.56 ▼1.40
Posts /wp-admin/edit.php3.36 ▲0.0148.73 ▲1.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.03 ▼13.70
Media Library /wp-admin/upload.php3.24 ▲0.0137.61 ▲4.63

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Datadev - Jadlog for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.12 ▼1.261.92 ▼0.3643.34 ▼5.52
Dashboard /wp-admin2,218 ▲335.77 ▼0.0899.26 ▼4.8140.88 ▼2.42
Posts /wp-admin/edit.php2,101 ▲122.13 ▲0.0239.41 ▼1.3736.83 ▲1.97
Add New Post /wp-admin/post-new.php1,545 ▲1217.86 ▼5.61661.41 ▲4.2054.53 ▲0.78
Media Library /wp-admin/upload.php1,403 ▲154.18 ▼0.0199.60 ▲2.2442.07 ▼1.44

Uninstaller [IO: ▲0.00MB] [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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: woocommerce, shipping, delivery, jadlog

datadev-jadlog-for-woocommerce/datadev-jadlog-for-woocommerce.php 92% from 13 tests

The primary PHP file in "Datadev - Jadlog for WooCommerce" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.5.1" instead of "3.8.0")

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 plugin1,249 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP192849321,061
PO File16876177
JavaScript21011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.31
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes17.69%
▷ Concrete classes1292.31%
▷ Final classes00.00%
Methods89
▷ Static methods910.11%
▷ Public methods6674.16%
▷ Protected methods2224.72%
▷ Private methods11.12%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin