83% delloop4woo

Code Review | Delloop for WooCommerce

WordPress plugin Delloop for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: delloop4woo
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.2-6.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2022
  • Latest release: Apr 12, 2023
  • Number of updates: 15
  • Update frequency: every 27.1 days
  • Top authors: delloop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /301 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.05MB] [CPU: ▼5.66ms] Passed 4 tests

This is a short check of server-side resources used by Delloop for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.99 ▼3.29
Dashboard /wp-admin3.37 ▲0.0250.75 ▼12.11
Posts /wp-admin/edit.php3.48 ▲0.1250.13 ▲2.04
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.68 ▼5.23
Media Library /wp-admin/upload.php3.29 ▲0.0637.30 ▼1.99

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Delloop for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.35 ▼0.372.23 ▲0.0546.42 ▼1.91
Dashboard /wp-admin2,211 ▲315.56 ▼0.0598.60 ▲11.5242.69 ▼1.39
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0238.23 ▼0.0134.15 ▼3.17
Add New Post /wp-admin/post-new.php1,539 ▲1323.61 ▲0.54673.47 ▼12.1151.36 ▼6.80
Media Library /wp-admin/upload.php1,416 ▲134.23 ▲0.0394.82 ▼12.6243.05 ▼1.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/delloop4woo/admin-screen.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Donate link: Invalid url: "htttp://www.Delloop.com"
The official readme.txt is a good inspiration

delloop4woo/delloop-for-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "Delloop for WooCommerce" version 1.1.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("delloop4woo.php" instead of "delloop-for-woocommerce.php")

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 detected339 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP37024339

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1155.00%
▷ Protected methods00.00%
▷ Private methods945.00%
Functions8
▷ Named functions00.00%
▷ Anonymous functions8100.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png3.46KB2.16KB▼ 37.69%