89% wp-tracking-codes

Code Review | Wp Tracking Codes

WordPress plugin Wp Tracking Codes scored89%from 54 tests.

About plugin

  • Plugin page: wp-tracking-codes
  • Plugin version: 1.8.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Jul 5, 2016
  • Latest release: Nov 8, 2023
  • Number of updates: 45
  • Update frequency: every 59.6 days
  • Top authors: Heitor_tito (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /21,512 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.75ms] Passed 4 tests

A check of server-side resources used by Wp Tracking Codes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.31 ▼3.64
Dashboard /wp-admin3.34 ▼0.0145.27 ▼14.98
Posts /wp-admin/edit.php3.45 ▲0.1048.87 ▼1.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.04 ▼6.77
Media Library /wp-admin/upload.php3.26 ▲0.0333.95 ▲0.23
WP Tracking Codes /wp-admin/options-general.php?page=wp-tracking-codes3.2731.94

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Wp Tracking Codes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.67 ▲0.421.82 ▲0.3437.97 ▼1.06
Dashboard /wp-admin2,199 ▲255.61 ▼0.0387.73 ▼9.7440.42 ▲0.59
Posts /wp-admin/edit.php2,107 ▲41.94 ▼0.0341.95 ▲0.3535.78 ▲0.28
Add New Post /wp-admin/post-new.php1,538 ▲1218.38 ▼4.76626.47 ▼13.7863.53 ▲11.37
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.0696.69 ▼15.9842.54 ▼1.35
WP Tracking Codes /wp-admin/options-general.php?page=wp-tracking-codes9932.1322.7529.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt is a good inspiration

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

This is the main PHP file of "Wp Tracking Codes" version 1.8.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 198 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin789 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP584187789

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity22.00
▷ Minimum class complexity16.00
▷ Maximum class complexity35.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods42
▷ Static methods511.90%
▷ Public methods3276.19%
▷ Protected methods00.00%
▷ Private methods1023.81%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin