99% 17track

Code Review | 17TRACK for WooCommerce

WordPress plugin 17TRACK for WooCommerce scored 99% from 54 tests.

About plugin

  • Plugin page: 17track
  • Plugin version: 1.2.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.8.1
  • First release: Jul 21, 2018
  • Latest release: Jan 19, 2022
  • Number of updates: 30
  • Update frequency: every 42.6 days
  • Top authors: 17track (100%)

Code review

54 tests

User reviews

1 review

Install metrics

0+ active / 9,253 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼142.62ms] Passed 4 tests

A check of server-side resources used by 17TRACK for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0024.03 ▼0.94
Dashboard /wp-admin3.06 ▼0.0031.20 ▼1.60
Posts /wp-admin/edit.php3.15 ▲0.0431.33 ▼0.61
Add New Post /wp-admin/post-new.php5.42 ▼0.0169.10 ▼567.06
Media Library /wp-admin/upload.php3.00 ▲0.0021.86 ▼0.87

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for 17TRACK for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.73 ▲0.136.71 ▼0.4774.26 ▼3.82
Dashboard /wp-admin2,930 ▲316.17 ▼0.04116.31 ▼12.34166.92 ▼5.46
Posts /wp-admin/edit.php2,740 ▲33.23 ▲0.0165.44 ▲0.77137.56 ▼3.88
Add New Post /wp-admin/post-new.php3,722 ▲2418.78 ▼0.21441.55 ▼5.87157.73 ▼6.67
Media Library /wp-admin/upload.php1,752 ▼05.50 ▲0.04139.76 ▼2.48181.47 ▼0.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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 | 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 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === 17track === )
The official readme.txt might help

17track/17TRACK.php 92% from 13 tests

The main PHP script in "17TRACK for WooCommerce" version 1.2.10 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("17track.php" instead of "17TRACK.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin7,084 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS38475,5205,017
PHP9252661,667
JavaScript87422400

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity27.89
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods93
▷ Static methods11.08%
▷ Public methods7378.49%
▷ Protected methods88.60%
▷ Private methods1212.90%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants16.67%
▷ Class constants1493.33%
▷ Public constants14100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/plugin/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
assets/plugin/chosen/chosen-sprite.png0.53KB0.88KB0.00%