84% snoobi-bv-analytics-tracking

Code Review | Snoobi BV Analytics tracking

WordPress plugin Snoobi BV Analytics tracking scored84%from 54 tests.

About plugin

  • Plugin page: snoobi-bv-analyti...
  • Plugin version: 2.13
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2015
  • Latest release: Dec 23, 2022
  • Number of updates: 26
  • Update frequency: every 108.0 days
  • Top authors: frn123 (88.46%)maitroosvalt (15.38%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,868 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by Snoobi BV Analytics tracking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.97 ▼0.66
Dashboard /wp-admin3.33 ▲0.0350.32 ▲1.09
Posts /wp-admin/edit.php3.39 ▲0.0348.27 ▼0.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.81 ▼17.88
Media Library /wp-admin/upload.php3.26 ▲0.0338.03 ▲2.96
Snoobi Menu /wp-admin/options-general.php?page=snoobipluginoptions3.2231.47

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Snoobi BV Analytics tracking
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.82 ▲0.261.72 ▼0.4746.17 ▲1.99
Dashboard /wp-admin2,210 ▲225.85 ▲0.96103.88 ▼2.8443.70 ▲2.10
Posts /wp-admin/edit.php2,096 ▲72.05 ▼0.0142.44 ▲2.5137.66 ▲3.96
Add New Post /wp-admin/post-new.php1,536 ▲823.10 ▲4.80664.33 ▲42.7652.01 ▼1.29
Media Library /wp-admin/upload.php1,392 ▲104.23 ▲0.0397.89 ▼3.4642.61 ▼1.22
Snoobi Menu /wp-admin/options-general.php?page=snoobipluginoptions9372.0522.5129.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/snoobi-bv-analytics-tracking/snoobi_bv_analytics_tracking.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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: analytics, snoobi, tracking

snoobi-bv-analytics-tracking/snoobi_bv_analytics_tracking.php 92% from 13 tests

The main PHP script in "Snoobi BV Analytics tracking" version 2.13 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("snoobi-bv-analytics-tracking.php" instead of "snoobi_bv_analytics_tracking.php")

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
There were no executable files found in this plugin180 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12620180

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin