89% treggo-shipping-for-woocommerce

Code Review | Treggo Shipping for WooCommerce

WordPress plugin Treggo Shipping for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: treggo-shipping-f...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Dec 1, 2016
  • Latest release: Aug 3, 2017
  • Number of updates: 22
  • Update frequency: every 10.9 days
  • Top authors: nicotorchio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /983 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
Installer ran successfully

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

This is a short check of server-side resources used by Treggo Shipping for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.25 ▼5.12
Dashboard /wp-admin3.35 ▲0.0544.38 ▼5.23
Posts /wp-admin/edit.php3.40 ▲0.0451.24 ▲3.12
Add New Post /wp-admin/post-new.php5.93 ▲0.05106.14 ▲3.56
Media Library /wp-admin/upload.php3.27 ▲0.0438.42 ▲1.58

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Treggo Shipping for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.061.72 ▼0.0743.06 ▼3.37
Dashboard /wp-admin2,206 ▲184.86 ▼1.00106.65 ▼4.8638.91 ▼3.20
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0941.90 ▲0.3340.31 ▲4.61
Add New Post /wp-admin/post-new.php1,519 ▼1823.12 ▲5.02691.73 ▲72.5661.21 ▲8.80
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0398.70 ▼7.9947.17 ▲2.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: argentina, delivery, shipping, ecommerce, treggo...

treggo-shipping-for-woocommerce/treggo-shipping-for-woocommerce.php 85% from 13 tests

"Treggo Shipping for WooCommerce" version 1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/lang")

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
Success! There were no dangerous files found in this plugin219 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11912219

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin