90% belboon-advertiser-tracking

Code Review | belboon Advertiser Tracking

WordPress plugin belboon Advertiser Tracking scored 90% from 54 tests.

About plugin

  • Plugin page: belboon-advertise...
  • Plugin version: 2.6.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 8, 2021
  • Latest release: Sep 18, 2023
  • Number of updates: 23
  • Update frequency: every 38.9 days
  • Top authors: slesch (69.57%)belboon (34.78%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,386 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▲2.61ms] Passed 4 tests

This is a short check of server-side resources used by belboon Advertiser Tracking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1638.64 ▼1.82
Dashboard /wp-admin3.49 ▲0.1951.06 ▲6.90
Posts /wp-admin/edit.php3.60 ▲0.2547.61 ▲2.76
Add New Post /wp-admin/post-new.php6.09 ▲0.2099.25 ▲5.08
Media Library /wp-admin/upload.php3.42 ▲0.1939.73 ▲4.40

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
bb_plugin_version
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for belboon Advertiser Tracking
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11714.25 ▲0.041.09 ▼0.6244.31 ▲5.79
Dashboard /wp-admin2,266 ▲754.88 ▲0.01112.60 ▲8.7941.77 ▲0.25
Posts /wp-admin/edit.php2,155 ▲662.06 ▲0.0141.91 ▲5.2836.85 ▲4.27
Add New Post /wp-admin/post-new.php1,541 ▲2723.50 ▲5.99655.97 ▲16.7671.39 ▼7.64
Media Library /wp-admin/upload.php1,448 ▲634.37 ▲0.12103.45 ▼6.2742.89 ▼2.16

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • bb_plugin_version
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: affiliate marketing, performance marketing, tracking, affilliate, retargeting

belboon-advertiser-tracking/belboon-advertiser-tracking.php Passed 13 tests

The principal PHP file in "belboon Advertiser Tracking" v. 2.6.0 is loaded by WordPress automatically on each request
76 characters long description:
Adds the affiliate marketing tracking of the belboon network for advertisers

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,184 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP182131541,343
PO File5194216576
CSS1440199
SVG30253
JavaScript12013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity139.00
▷ Minimum class complexity139.00
▷ Maximum class complexity139.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods71
▷ Static methods00.00%
▷ Public methods5273.24%
▷ Protected methods00.00%
▷ Private methods1926.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/belboon_get_api_key_menu.png49.43KB19.28KB▼ 61.00%
assets/img/belboon_get_api_key_page.png42.91KB16.67KB▼ 61.15%