99% wp-tracking-codes

Code Review | Wp Tracking Codes

WordPress plugin Wp Tracking Codes scored 99% from 54 tests.

About plugin

  • Plugin page: wp-tracking-codes
  • Plugin version: 1.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.0-5.8.1
  • WordPress version: 5.9.2
  • First release: Jul 5, 2016
  • Latest release: Sep 22, 2021
  • Number of updates: 41
  • Update frequency: every 46.5 days
  • Top authors: Heitor_tito (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active / 19,836 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼302.73ms] Passed 4 tests

Server-side resources used by Wp Tracking Codes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2254.91 ▲0.93
Dashboard /wp-admin3.55 ▲0.1434.96 ▲0.60
Posts /wp-admin/edit.php3.77 ▲0.1335.89 ▼2.07
Add New Post /wp-admin/post-new.php7.01 ▲0.0491.83 ▼1,206.75
Media Library /wp-admin/upload.php3.42 ▲0.1323.27 ▼2.69
WP Tracking Codes /wp-admin/options-general.php?page=wp-tracking-codes3.4024.52

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Wp Tracking Codes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲3615.91 ▲0.485.86 ▼0.112.30 ▼0.75
Dashboard /wp-admin2,897 ▲366.11 ▼0.04118.10 ▼15.05157.08 ▼6.82
Posts /wp-admin/edit.php2,693 ▲213.23 ▼0.0065.71 ▲0.98140.20 ▼1.57
Add New Post /wp-admin/post-new.php1,671 ▼4018.07 ▼2.93429.86 ▲2.55160.73 ▼2.89
Media Library /wp-admin/upload.php1,700 ▲25.55 ▲0.06138.78 ▼7.17190.70 ▼1.31
WP Tracking Codes /wp-admin/options-general.php?page=wp-tracking-codes1,2772.3756.20129.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-tracking-codes/wp-tracking-codes.php 92% from 13 tests

The entry point to "Wp Tracking Codes" version 1.7.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 240 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected836 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP586180836

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity23.00
▷ Minimum class complexity17.00
▷ Maximum class complexity38.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods43
▷ Static methods511.63%
▷ Public methods3376.74%
▷ Protected methods00.00%
▷ Private methods1023.26%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
No PNG files were detected