90% woo-enviofacil

Code Review | WooCommerce Envio Fácil

WordPress plugin WooCommerce Envio Fácil scored90%from 54 tests.

About plugin

  • Plugin page: woo-enviofacil
  • Plugin version: 0.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-5.0
  • WordPress version: 6.3.1
  • First release: Oct 10, 2018
  • Latest release: Feb 4, 2019
  • Number of updates: 14
  • Update frequency: every 9.2 days
  • Top authors: moacirbrg (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,258 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.96ms] Passed 4 tests

A check of server-side resources used by WooCommerce Envio Fácil
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.93 ▲0.93
Dashboard /wp-admin3.31 ▼0.0450.33 ▼18.28
Posts /wp-admin/edit.php3.36 ▲0.0053.74 ▲4.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.85 ▼2.16
Media Library /wp-admin/upload.php3.24 ▲0.0037.52 ▼0.31

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Envio Fácil
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.38 ▲0.031.68 ▼0.0846.06 ▲3.78
Dashboard /wp-admin2,183 ▲65.53 ▼0.1282.45 ▼9.6642.41 ▲0.99
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0341.23 ▲6.7840.81 ▼0.81
Add New Post /wp-admin/post-new.php1,526 ▼023.53 ▲0.29665.05 ▲4.5750.54 ▲0.38
Media Library /wp-admin/upload.php1,400 ▼34.15 ▲0.01100.56 ▼0.3942.67 ▼4.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: shipping, delivery, enviofacil, woocommerce, envio fcil

woo-enviofacil/woo-enviofacil.php 92% from 13 tests

"WooCommerce Envio Fácil" version 0.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "4.6.0")

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
There were no executable files found in this plugin690 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP1096119500
PO File24648135
Markdown126055

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods35
▷ Static methods411.43%
▷ Public methods2468.57%
▷ Protected methods411.43%
▷ Private methods720.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected