78% force24-tracking

Code Review | Force24 Tracking

WordPress plugin Force24 Tracking scored 78% from 54 tests.

About plugin

  • Plugin page: force24-tracking
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 5.8.1
  • First release: Dec 22, 2020
  • Latest release: Mar 17, 2021
  • Number of updates: 11
  • Update frequency: every 8.8 days
  • Top authors: force24 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 504 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼143.08ms] Passed 4 tests

Server-side resources used by Force24 Tracking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0132.52 ▼4.19
Dashboard /wp-admin3.08 ▲0.0346.94 ▼0.38
Posts /wp-admin/edit.php3.14 ▲0.0347.59 ▼0.19
Add New Post /wp-admin/post-new.php5.44 ▲0.0191.69 ▼563.70
Media Library /wp-admin/upload.php3.03 ▲0.0331.19 ▼4.03
Force24 Tracking /wp-admin/options-general.php?page=force24-tracking2.9727.31

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options
force24_tracking

Browser metrics Passed 4 tests

An overview of browser requirements for Force24 Tracking
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8916.16 ▲0.6313.23 ▲2.3746.66 ▼3.63
Dashboard /wp-admin2,972 ▲385.92 ▼0.12149.38 ▼12.92111.37 ▲2.48
Posts /wp-admin/edit.php2,744 ▲52.84 ▲0.1269.17 ▲2.0793.45 ▲7.07
Add New Post /wp-admin/post-new.php1,503 ▲318.55 ▼0.06386.68 ▼19.03110.89 ▼11.32
Media Library /wp-admin/upload.php1,815 ▲55.02 ▲0.00150.93 ▼6.78112.45 ▼1.41
Force24 Tracking /wp-admin/options-general.php?page=force24-tracking1,3642.0856.5691.20

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • force24_tracking

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=force24-tracking
    • > Notice in wp-content/plugins/force24-tracking/admin/class-force24-tracking-admin.php+451
    Undefined index: client_id
    • > GET request to /wp-admin/options-general.php?page=force24-tracking
    • > Notice in wp-content/plugins/force24-tracking/admin/class-force24-tracking-admin.php+456
    Undefined index: form_selector
    • > GET request to /wp-admin/options-general.php?page=force24-tracking
    • > Notice in wp-content/plugins/force24-tracking/admin/class-force24-tracking-admin.php+462
    Undefined index: cookie_domain
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=force24-tracking
    • > Notice in wp-content/plugins/force24-tracking/admin/class-force24-tracking-admin.php+470
    Undefined index: form_maps
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=force24-tracking
    • > Notice in wp-content/plugins/force24-tracking/admin/class-force24-tracking-admin.php+392
    Undefined index: form_maps_error

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/force24-tracking/admin/partials/force24-tracking-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (These are the options where you can configure your client ID and various other options.)
The official readme.txt might help

force24-tracking/force24-tracking.php Passed 13 tests

The primary PHP file in "Force24 Tracking" version 1.2.2 is used by WordPress to initiate all plugin functionality
86 characters long description:
Add and configure the Force24 Tracking and Web Capture on your WordPress installation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin502 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11189597499
JavaScript12273
CSS1040

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.40
Average class complexity9.71
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods42
▷ Static methods37.14%
▷ Public methods3480.95%
▷ Protected methods37.14%
▷ Private methods511.90%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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