83% contlo-for-woocommerce

Code Review | Contlo for WooCommerce

WordPress plugin Contlo for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: contlo-for-woocom...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.1.1
  • WordPress version: 6.3.1
  • First release: May 17, 2023
  • Latest release: May 23, 2023
  • Number of updates: 17
  • Update frequency: every 0.4 days
  • Top authors: contlo2021 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /227 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Contlo for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1425.27 ▼19.83
Dashboard /wp-admin3.33 ▼0.0148.26 ▼17.42
Posts /wp-admin/edit.php3.38 ▲0.0251.14 ▼1.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.47 ▼6.84
Media Library /wp-admin/upload.php3.25 ▲0.0237.44 ▲1.76

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • Illegal file modification detected: 2 files (0.00KB) outside of "wp-content/plugins/contlo-for-woocommerce/" and "wp-content/uploads/"
    • (new file) apps/contlo/.empty
    • (new file) wp-admin/apps/contlo/.empty
Filesystem: 27 new files
Database: 1 new table, 7 new options
New tables
wp_contlo_logs
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
event_tracking_enabled
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Contlo for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.37 ▼0.212.13 ▲0.0943.10 ▲2.64
Dashboard /wp-admin2,209 ▲325.59 ▲0.0284.80 ▼14.5578.61 ▲36.76
Posts /wp-admin/edit.php2,111 ▲112.00 ▲0.0338.25 ▼2.4132.96 ▼4.86
Add New Post /wp-admin/post-new.php1,547 ▲1123.05 ▼0.43650.69 ▼54.2549.72 ▼7.47
Media Library /wp-admin/upload.php1,408 ▲54.18 ▼0.03102.66 ▼12.9966.94 ▲19.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/contlo-for-woocommerce/contlo-woocommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: marketing automation, sms marketing, whatsapp marketing, marketing, woocommerce emails...

contlo-for-woocommerce/contlo-woocommerce.php 85% from 13 tests

The main file in "Contlo for WooCommerce" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("4.1.0" instead of "2.2")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contlo-for-woocommerce.php" instead of "contlo-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,188 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP22215351,019
JavaScript110090
CSS119079

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.57
▷ Minimum class complexity3.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods2064.52%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions26
▷ Named functions2492.31%
▷ Anonymous functions27.69%
Constants13
▷ Global constants13100.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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/contlo-icon.png0.49KB0.36KB▼ 27.18%
assets/img/contlowoocommerce.png40.82KB16.79KB▼ 58.88%