84% colete-online

Code Review | Colete-Online

WordPress plugin Colete-Online scored84%from 54 tests.

About plugin

  • Plugin page: colete-online
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2
  • WordPress version: 6.3.1
  • First release: Apr 18, 2021
  • Latest release: Apr 9, 2023
  • Number of updates: 33
  • Update frequency: every 22.6 days
  • Top authors: coleteonline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,219 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.31ms] Passed 4 tests

An overview of server-side resources used by Colete-Online
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.27 ▼4.57
Dashboard /wp-admin3.39 ▲0.0949.09 ▲4.22
Posts /wp-admin/edit.php3.44 ▲0.0946.00 ▲1.45
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.99 ▼2.33
Media Library /wp-admin/upload.php3.25 ▲0.0241.00 ▲6.64

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Colete-Online
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲10814.29 ▲0.072.02 ▲0.4344.57 ▼0.21
Dashboard /wp-admin2,250 ▲705.55 ▼0.1485.09 ▼2.2242.81 ▲3.07
Posts /wp-admin/edit.php2,156 ▲562.12 ▲0.1135.55 ▲0.6335.10 ▲0.50
Add New Post /wp-admin/post-new.php1,576 ▲5023.35 ▼0.14662.23 ▼24.3265.24 ▲10.05
Media Library /wp-admin/upload.php1,452 ▲584.21 ▲0.02101.21 ▼0.2344.75 ▲1.12

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/colete-online/public/partials/colete-online-public-display.php
    • > /wp-content/plugins/colete-online/includes/class-colete-online-custom-ajax.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: woocommerce, shipping

colete-online/colete-online.php 92% from 13 tests

Analyzing the main PHP file in "Colete-Online" version 1.4.3
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected7,968 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
PHP427184274,734
JavaScript14386102,272
PO File1240561648
CSS8452252
SVG30162

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity13.54
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity2.99
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces1
Interfaces2
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods185
▷ Static methods1910.27%
▷ Public methods15985.95%
▷ Protected methods21.08%
▷ Private methods2412.97%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ 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
PNG images were not found in this plugin