89% logic-hop-personalization-for-elementor-add-on

Code Review | Logic Hop Personalization for Elementor Add-on

WordPress plugin Logic Hop Personalization for Elementor Add-on scored89%from 54 tests.

About plugin

  • Plugin page: logic-hop-persona...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 5, 2019
  • Latest release: Feb 15, 2022
  • Number of updates: 8
  • Update frequency: every 135.9 days
  • Top authors: logichop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,586 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 gracefully, with no errors

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

A check of server-side resources used by Logic Hop Personalization for Elementor Add-on
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.53 ▼9.12
Dashboard /wp-admin3.35 ▲0.0456.11 ▼2.34
Posts /wp-admin/edit.php3.40 ▲0.0449.35 ▼0.64
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.96 ▼23.77
Media Library /wp-admin/upload.php3.27 ▲0.0438.54 ▲2.72

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Logic Hop Personalization for Elementor Add-on
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.33 ▲0.071.71 ▼0.2146.66 ▲1.75
Dashboard /wp-admin2,211 ▲345.61 ▲0.0289.92 ▼8.8339.78 ▼2.20
Posts /wp-admin/edit.php2,119 ▲192.02 ▲0.0741.92 ▼3.1637.89 ▼1.04
Add New Post /wp-admin/post-new.php1,537 ▲1123.62 ▲0.07691.61 ▲39.9653.33 ▼7.17
Media Library /wp-admin/upload.php1,413 ▲134.15 ▼0.0499.84 ▼8.0840.28 ▼7.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% 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
5 plugin tags: elementor, personalization, dynamic, logic hop, personalized content

logic-hop-personalization-for-elementor-add-on/logichop_elementor.php 92% from 13 tests

This is the main PHP file of "Logic Hop Personalization for Elementor Add-on" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("logic-hop-personalization-for-elementor-add-on.php" instead of "logichop_elementor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin147 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23280135
JavaScript12012

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 4.50MB with 3.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png499.67KB131.09KB▼ 73.76%
screenshot-1.png4,113.43KB1,329.76KB▼ 67.67%