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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 25.27 ▼19.83 |
Dashboard /wp-admin | 3.33 ▼0.01 | 48.26 ▼17.42 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.14 ▼1.15 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.47 ▼6.84 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.37 ▼0.21 | 2.13 ▲0.09 | 43.10 ▲2.64 |
Dashboard /wp-admin | 2,209 ▲32 | 5.59 ▲0.02 | 84.80 ▼14.55 | 78.61 ▲36.76 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.00 ▲0.03 | 38.25 ▼2.41 | 32.96 ▼4.86 |
Add New Post /wp-admin/post-new.php | 1,547 ▲11 | 23.05 ▼0.43 | 650.69 ▼54.25 | 49.72 ▼7.47 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.18 ▼0.03 | 102.66 ▼12.99 | 66.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 215 | 35 | 1,019 |
JavaScript | 1 | 10 | 0 | 90 |
CSS | 1 | 19 | 0 | 79 |
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 code | 0.28 |
Average class complexity | 5.57 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 20 | 64.52% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 26 | |
▷ Named functions | 24 | 92.31% |
▷ Anonymous functions | 2 | 7.69% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/contlo-icon.png | 0.49KB | 0.36KB | ▼ 27.18% |
assets/img/contlowoocommerce.png | 40.82KB | 16.79KB | ▼ 58.88% |