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

Code Review | Logic Hop Personalization for Divi Add-on

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

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,000 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼2.69ms] Passed 4 tests

Analyzing server-side resources used by Logic Hop Personalization for Divi Add-on
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1640.11 ▼1.28
Dashboard /wp-admin3.48 ▲0.1752.51 ▲3.85
Posts /wp-admin/edit.php3.53 ▲0.1748.35 ▼1.15
Add New Post /wp-admin/post-new.php6.06 ▲0.1782.85 ▼11.02
Media Library /wp-admin/upload.php3.40 ▲0.1738.06 ▲2.68

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Logic Hop Personalization for Divi Add-on: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.06 ▼0.291.94 ▲0.3042.25 ▼0.16
Dashboard /wp-admin2,214 ▲345.60 ▼0.0482.98 ▼3.3239.83 ▼3.82
Posts /wp-admin/edit.php2,098 ▲12.02 ▲0.0135.12 ▼1.9334.15 ▲2.92
Add New Post /wp-admin/post-new.php1,537 ▲723.43 ▲0.39677.64 ▲11.6660.97 ▲1.33
Media Library /wp-admin/upload.php1,413 ▲134.19 ▲0.0296.78 ▼9.6842.81 ▼3.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive 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 errors were detected

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: form, personalization, divi, personalized content, logic hop

logic-hop-personalization-for-divi-add-on/logichop_divi.php 92% from 13 tests

"Logic Hop Personalization for Divi Add-on" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("logic-hop-personalization-for-divi-add-on.php" instead of "logichop_divi.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected217 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP251183161
CSS13050
JavaScript2006

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.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 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 1.75MB with 1.30MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png776.44KB202.29KB▼ 73.95%
screenshot-1.png1,019.16KB263.50KB▼ 74.14%