94% colete-online

Code Review | Colete-Online

WordPress plugin Colete-Online scored 94% from 54 tests.

About plugin

  • Plugin page: colete-online
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8
  • WordPress version: 5.8.1
  • First release: Apr 18, 2021
  • Latest release: Oct 15, 2021
  • Number of updates: 25
  • Update frequency: every 8.2 days
  • Top authors: coleteonline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 437 total downloads

Benchmarks

Plugin footprint Passed 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.40MB] [CPU: ▼136.00ms] 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.24 ▲0.5241.60 ▲20.26
Dashboard /wp-admin3.46 ▲0.4151.08 ▲12.15
Posts /wp-admin/edit.php3.51 ▲0.4151.80 ▲1.70
Add New Post /wp-admin/post-new.php5.82 ▲0.3999.65 ▼558.06
Media Library /wp-admin/upload.php3.41 ▲0.4137.92 ▲0.23

Server storage [IO: ▲0.63MB] [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, no new options

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 /3,747 ▲15116.19 ▲0.638.21 ▲0.1951.63 ▲0.97
Dashboard /wp-admin3,042 ▲1055.85 ▼0.09146.42 ▼10.26130.77 ▲17.56
Posts /wp-admin/edit.php2,811 ▲722.85 ▲0.1576.93 ▲5.7298.94 ▼1.94
Add New Post /wp-admin/post-new.php1,550 ▼13318.46 ▼0.31381.24 ▲2.88114.52 ▼0.51
Media Library /wp-admin/upload.php1,880 ▲705.05 ▲0.02161.24 ▼6.08136.07 ▲7.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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.3.1
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,653 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
PHP426984184,492
JavaScript14371102,199
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.38
Average class complexity12.37
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces1
Interfaces2
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods181
▷ Static methods1910.50%
▷ Public methods15887.29%
▷ Protected methods21.10%
▷ Private methods2111.60%
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