89% transportadora-zapex-woocommerce

Code Review | Transportadora Zapex for WooCommerce

WordPress plugin Transportadora Zapex for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: transportadora-za...
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 22, 2021
  • Latest release: Feb 10, 2021
  • Number of updates: 14
  • Update frequency: every 1.4 days
  • Top authors: thallesbrandao (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Transportadora Zapex for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.19 ▼2.11
Dashboard /wp-admin3.33 ▼0.0244.17 ▼18.43
Posts /wp-admin/edit.php3.38 ▲0.0245.70 ▼3.05
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.73 ▼4.77
Media Library /wp-admin/upload.php3.25 ▲0.0235.51 ▲1.14

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Transportadora Zapex for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.46 ▼0.301.68 ▼0.4238.61 ▼5.47
Dashboard /wp-admin2,206 ▲185.89 ▲0.07108.04 ▼11.4143.57 ▼0.87
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0140.28 ▲4.6834.44 ▲0.64
Add New Post /wp-admin/post-new.php1,519 ▼1423.18 ▲0.47596.71 ▼53.4446.50 ▼6.69
Media Library /wp-admin/upload.php1,388 ▼34.29 ▲0.1199.04 ▼1.6444.32 ▼1.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: delivery, zapex, shipping, woocommerce

transportadora-zapex-woocommerce/zapex-woocommerce.php 85% from 13 tests

The primary PHP file in "Transportadora Zapex for WooCommerce" version 1.2.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.8.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("transportadora-zapex-woocommerce.php" instead of "zapex-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected147 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34630147

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods457.14%
▷ Protected methods00.00%
▷ Private methods342.86%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin