84% wc-correios-easy-tracking-code

Code Review | WC Correios Easy Tracking Code

WordPress plugin WC Correios Easy Tracking Code scored84%from 54 tests.

About plugin

  • Plugin page: wc-correios-easy-...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Nov 5, 2016
  • Latest release: Oct 23, 2020
  • Number of updates: 10
  • Update frequency: every 144.9 days
  • Top authors: Amgnando (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /8,896 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by WC Correios Easy Tracking Code
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.36 ▼0.80
Dashboard /wp-admin3.32 ▲0.0145.11 ▼3.57
Posts /wp-admin/edit.php3.37 ▲0.0146.77 ▲0.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.15 ▲3.74
Media Library /wp-admin/upload.php3.24 ▲0.0132.40 ▲0.74

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WC Correios Easy Tracking Code
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.77 ▼0.771.72 ▼0.0241.19 ▼2.02
Dashboard /wp-admin2,207 ▲165.80 ▲0.9195.08 ▼19.5338.62 ▼3.37
Posts /wp-admin/edit.php2,093 ▲72.04 ▲0.0740.62 ▲3.2336.03 ▲1.95
Add New Post /wp-admin/post-new.php1,518 ▼1523.14 ▼0.02633.37 ▼68.9343.22 ▼12.69
Media Library /wp-admin/upload.php1,389 ▲14.23 ▲0.0596.97 ▼4.7140.97 ▼4.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-correios-easy-tracking-code/wc-correios-easy-tracking-code.php:134

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Como adicionar um código de rastreio) image missing
You can look at the official readme.txt

wc-correios-easy-tracking-code/wc-correios-easy-tracking-code.php Passed 13 tests

Analyzing the main PHP file in "WC Correios Easy Tracking Code" version 1.3.0
85 characters long description:
Adicione código de rastreio dos Correios sem precisar abrir o pedido no WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin141 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1225359
JavaScript110143
CSS11039

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods337.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin