89% listenlayer

Code Review | ListenLayer - Cloud Data Layer Platform

WordPress plugin ListenLayer - Cloud Data Layer Platform scored89%from 54 tests.

About plugin

  • Plugin page: listenlayer
  • Plugin version: 1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 30, 2021
  • Latest release: Apr 27, 2023
  • Number of updates: 14
  • Update frequency: every 34.6 days
  • Top authors: listenlayer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.58ms] Passed 4 tests

A check of server-side resources used by ListenLayer - Cloud Data Layer Platform
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.81 ▼8.35
Dashboard /wp-admin3.33 ▲0.0243.73 ▼4.19
Posts /wp-admin/edit.php3.38 ▲0.0246.02 ▲5.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.34 ▼18.90
Media Library /wp-admin/upload.php3.25 ▲0.0238.24 ▲6.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for ListenLayer - Cloud Data Layer Platform
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.58 ▼1.011.68 ▼0.1242.24 ▼5.63
Dashboard /wp-admin2,206 ▲155.84 ▼0.06107.90 ▲0.6540.16 ▼7.62
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0638.55 ▼6.1234.18 ▼0.01
Add New Post /wp-admin/post-new.php1,532 ▲1323.10 ▼0.20642.03 ▲32.2861.51 ▼3.58
Media Library /wp-admin/upload.php1,382 ▼94.20 ▲0.0696.36 ▼7.0744.51 ▲2.00

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 did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: form, cart, woocommerce, woo, e-commerce...

listenlayer/listenlayer-datalayer-tracking.php 85% from 13 tests

The main PHP file in "ListenLayer - Cloud Data Layer Platform" ver. 1.9 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 225 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("listenlayer.php" instead of "listenlayer-datalayer-tracking.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,457 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3391812,457

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity100.50
▷ Minimum class complexity4.00
▷ Maximum class complexity197.00
Average method complexity8.32
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2596.15%
▷ Protected methods00.00%
▷ Private methods13.85%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin