84% wcf-shipment-tracking-for-woocommerce

Code Review | WCF Shipment Tracking for WooCommerce

WordPress plugin WCF Shipment Tracking for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wcf-shipment-trac...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0
  • WordPress version: 6.3.1
  • First release: Jul 8, 2022
  • Latest release: Jul 8, 2022
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: wecode123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /864 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.02MB] [CPU: ▼5.86ms] Passed 4 tests

A check of server-side resources used by WCF Shipment Tracking for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.09 ▼6.61
Dashboard /wp-admin3.33 ▲0.0347.00 ▼5.21
Posts /wp-admin/edit.php3.38 ▲0.0251.23 ▼0.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.80 ▼9.67
Media Library /wp-admin/upload.php3.25 ▲0.0235.89 ▼1.96

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WCF Shipment Tracking for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.121.55 ▼0.3241.85 ▼0.16
Dashboard /wp-admin2,206 ▲245.91 ▲0.81113.16 ▲8.7547.66 ▲5.94
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0743.54 ▲3.1736.70 ▼0.73
Add New Post /wp-admin/post-new.php1,542 ▲2818.41 ▲0.77621.54 ▼92.6863.36 ▲8.30
Media Library /wp-admin/upload.php1,382 ▼04.25 ▼0.00102.32 ▼9.4545.99 ▲0.01

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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 | 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wcf-shipment-tracking-for-woocommerce/wcf-shipment-tracking.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: tracking, delivery, shipment tracking, shipping, woocommerce

wcf-shipment-tracking-for-woocommerce/wcf-shipment-tracking.php 92% from 13 tests

"WCF Shipment Tracking for WooCommerce" version 1.0'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:
  • Main file name: Name the main plugin file the same as the plugin slug ("wcf-shipment-tracking-for-woocommerce.php" instead of "wcf-shipment-tracking.php")

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
No dangerous file extensions were detected132 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14019132

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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