78% true-lazy-analytics

Code Review | True Lazy Analytics

WordPress plugin True Lazy Analytics scored78%from 54 tests.

About plugin

  • Plugin page: true-lazy-analytics
  • Plugin version: 2.4.4
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 26, 2020
  • Latest release: Nov 11, 2023
  • Number of updates: 48
  • Update frequency: every 22.5 days
  • Top authors: seojacky (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

4,000+ active /28,227 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼8.76ms] Passed 4 tests

Server-side resources used by True Lazy Analytics
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.64 ▲3.42
Dashboard /wp-admin3.44 ▲0.0946.01 ▼14.47
Posts /wp-admin/edit.php3.55 ▲0.2050.02 ▼7.52
Add New Post /wp-admin/post-new.php6.02 ▲0.1390.65 ▼12.60
Media Library /wp-admin/upload.php3.36 ▲0.1334.09 ▼0.44
💹 True Lazy Analytics /wp-admin/admin.php?page=true-lazy-analytics3.3331.29
WP Booster /wp-admin/admin.php?page=wp-booster3.3335.88

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by True Lazy Analytics
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲6914.67 ▲0.281.53 ▼0.1838.26 ▼6.94
Dashboard /wp-admin2,219 ▲425.62 ▲0.0792.21 ▼2.3144.50 ▲3.17
Posts /wp-admin/edit.php2,127 ▲271.96 ▲0.0240.16 ▼0.6939.53 ▲3.83
Add New Post /wp-admin/post-new.php1,558 ▲3225.10 ▲1.99606.93 ▼64.7956.54 ▼4.90
Media Library /wp-admin/upload.php1,421 ▲184.16 ▼0.05101.01 ▼2.2946.02 ▲3.75
💹 True Lazy Analytics /wp-admin/admin.php?page=true-lazy-analytics1,0872.0937.1550.33
WP Booster /wp-admin/admin.php?page=wp-booster1,0792.1025.7236.79

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/true-lazy-analytics/functions.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/true-lazy-analytics/setting-page.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-booster
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
You can take inspiration from this readme.txt

true-lazy-analytics/true-lazy-analytics.php 92% from 13 tests

"True Lazy Analytics" version 2.4.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected659 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4670646
CSS10113

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions30
▷ Named functions2583.33%
▷ Anonymous functions516.67%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin