90% datadev-total-express-for-woocommerce

Code Review | Datadev - Total Express for WooCommerce

WordPress plugin Datadev - Total Express for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: datadev-total-exp...
  • Plugin version: 1.1.3
  • 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 17, 2020
  • Latest release: Oct 18, 2020
  • Number of updates: 11
  • Update frequency: every 8.5 days
  • Top authors: datadev (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /1,202 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.96ms] Passed 4 tests

Analyzing server-side resources used by Datadev - Total Express for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.32 ▼2.83
Dashboard /wp-admin3.32 ▲0.0252.00 ▼0.44
Posts /wp-admin/edit.php3.38 ▲0.0247.63 ▼1.11
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.41 ▼15.47
Media Library /wp-admin/upload.php3.25 ▲0.0239.33 ▲4.04

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

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

Browser metrics Passed 4 tests

Datadev - Total Express for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲1514.37 ▲0.001.77 ▼0.5544.98 ▼0.48
Dashboard /wp-admin2,207 ▲295.51 ▼0.1488.83 ▼28.5641.04 ▼0.87
Posts /wp-admin/edit.php2,113 ▲102.01 ▲0.0336.41 ▲1.3938.72 ▲1.75
Add New Post /wp-admin/post-new.php1,542 ▲1423.21 ▲0.02659.88 ▼13.5859.46 ▼5.82
Media Library /wp-admin/upload.php1,415 ▲184.28 ▲0.06104.09 ▼15.5443.32 ▼3.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: shipping, woocommerce, total express, delivery

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

"Datadev - Total Express for WooCommerce" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.2" instead of "3.8.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,025 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP14220647856
PO File15865158
JavaScript21011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.12
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods67
▷ Static methods913.43%
▷ Public methods5176.12%
▷ Protected methods1420.90%
▷ Private methods22.99%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin