83% lianaautomation-sitetracking

Code Review | LianaAutomation Site Tracking

WordPress plugin LianaAutomation Site Tracking scored83%from 54 tests.

About plugin

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /367 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.60ms] Passed 4 tests

A check of server-side resources used by LianaAutomation Site Tracking
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.42 ▼8.92
Dashboard /wp-admin3.37 ▲0.0354.89 ▼6.99
Posts /wp-admin/edit.php3.42 ▲0.0645.01 ▼1.54
Add New Post /wp-admin/post-new.php5.95 ▲0.06104.83 ▲13.41
Media Library /wp-admin/upload.php3.29 ▲0.0635.27 ▲3.06
Site Tracking /wp-admin/admin.php?page=lianaautomation-sitetracking3.2630.73

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

LianaAutomation Site Tracking: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9814.47 ▲0.171.95 ▲0.3044.51 ▲0.30
Dashboard /wp-admin2,228 ▲374.87 ▼0.02102.08 ▼1.9741.72 ▼4.83
Posts /wp-admin/edit.php2,108 ▲192.02 ▼0.0135.13 ▼1.7733.79 ▼2.77
Add New Post /wp-admin/post-new.php1,562 ▲4318.58 ▼4.69602.59 ▼79.0163.66 ▲5.35
Media Library /wp-admin/upload.php1,410 ▲224.17 ▼0.05101.96 ▲4.0243.40 ▼0.25
Site Tracking /wp-admin/admin.php?page=lianaautomation-sitetracking8382.1926.3439.08

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/lianaautomation-sitetracking/admin/class-lianaautomation-sitetracking.php:411
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-sitetracking/includes/lianaautomation-cookie.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-sitetracking/includes/lianaautomation-pagebrowse.php:193
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-sitetracking/includes/lianaautomation-cookie.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: ecommerce, e-commerce, automation, online store

lianaautomation-sitetracking/lianaautomation-sitetracking.php 77% from 13 tests

"LianaAutomation Site Tracking" version 1.0.32's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: Required version does not match the one declared in readme.txt ("5.8" instead of "5.2")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected425 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP563203416
Markdown1609

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin