89% beetle-tracking

Code Review | Beetle Tracking - Cloudflare Zaraz for WordPress

WordPress plugin Beetle Tracking - Cloudflare Zaraz for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: beetle-tracking
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Mar 16, 2023
  • Latest release: Nov 15, 2023
  • Number of updates: 6
  • Update frequency: every 43.2 days
  • Top authors: rocketbeetlecom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /291 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.11MB] [CPU: ▼6.33ms] Passed 4 tests

An overview of server-side resources used by Beetle Tracking - Cloudflare Zaraz for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1337.35 ▼1.38
Dashboard /wp-admin3.41 ▲0.1145.45 ▼3.85
Posts /wp-admin/edit.php3.52 ▲0.1746.65 ▼0.78
Add New Post /wp-admin/post-new.php6.00 ▲0.1183.38 ▼19.29
Media Library /wp-admin/upload.php3.33 ▲0.1035.99 ▲4.08

Server storage [IO: ▲0.19MB] [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: 32 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
beetle_tracking_core_version
beetle_tracking_updated_at
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Beetle Tracking - Cloudflare Zaraz for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲16813.83 ▼0.428.59 ▲6.8541.26 ▼4.40
Dashboard /wp-admin2,229 ▲525.63 ▲0.0989.18 ▼5.6340.35 ▲2.32
Posts /wp-admin/edit.php2,134 ▲341.99 ▼0.1642.39 ▲4.3535.17 ▼1.72
Add New Post /wp-admin/post-new.php1,539 ▲223.22 ▲0.11691.74 ▲86.9559.49 ▲7.58
Media Library /wp-admin/upload.php1,432 ▲294.19 ▲0.0199.02 ▼2.9439.85 ▼5.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • beetle_tracking_updated_at
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • beetle_tracking_core_version
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
You can take inspiration from this readme.txt

beetle-tracking/beetle-tracking.php 85% from 13 tests

"Beetle Tracking - Cloudflare Zaraz for WordPress" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
  • Requires PHP: Required version must match the one declared in readme.txt ("7.2" instead of "7.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,473 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP242221081,072
CSS11120392
SVG2007
JavaScript2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity5.75
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods63
▷ Static methods2438.10%
▷ Public methods5993.65%
▷ Protected methods00.00%
▷ Private methods46.35%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/big-logo.png36.44KB16.61KB▼ 54.41%
assets/images/logo.png0.66KB0.65KB▼ 1.48%