89% 17track

Code Review | 17TRACK for WooCommerce

WordPress plugin 17TRACK for WooCommerce scored89%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: 6.3.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

800+ active /11,552 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.07MB] [CPU: ▼11.35ms] 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 /3.55 ▲0.0837.02 ▼1.35
Dashboard /wp-admin3.39 ▲0.0451.71 ▼15.01
Posts /wp-admin/edit.php3.50 ▲0.1443.20 ▼9.14
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.62 ▼17.42
Media Library /wp-admin/upload.php3.31 ▲0.0833.50 ▼3.83

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, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

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 /2,814 ▲5314.72 ▲0.441.77 ▲0.1337.47 ▼3.18
Dashboard /wp-admin2,198 ▲215.56 ▼0.0982.61 ▼8.5140.50 ▲1.50
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0334.97 ▼6.1034.19 ▼3.70
Add New Post /wp-admin/post-new.php1,526 ▼323.65 ▲0.40691.90 ▲111.1451.77 ▼3.57
Media Library /wp-admin/upload.php1,397 ▼04.19 ▲0.0196.14 ▼4.5342.99 ▼1.21

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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%