90% logic-hop-beaver-builder

Code Review | Logic Hop Personalization for Beaver Builder Add-on

WordPress plugin Logic Hop Personalization for Beaver Builder Add-on scored90%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /815 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.09ms] Passed 4 tests

Server-side resources used by Logic Hop Personalization for Beaver Builder Add-on
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.65 ▼0.98
Dashboard /wp-admin3.34 ▲0.0446.06 ▼0.58
Posts /wp-admin/edit.php3.39 ▲0.0347.04 ▲2.44
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.64 ▼0.82
Media Library /wp-admin/upload.php3.26 ▲0.0335.19 ▲2.03

Server storage [IO: ▲0.46MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Logic Hop Personalization for Beaver Builder Add-on
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲10713.30 ▼0.991.67 ▲0.0838.79 ▼3.38
Dashboard /wp-admin2,220 ▲285.85 ▲0.89112.78 ▲7.0043.63 ▲4.57
Posts /wp-admin/edit.php2,105 ▲162.03 ▲0.0540.84 ▲2.9535.81 ▲4.54
Add New Post /wp-admin/post-new.php1,545 ▲923.11 ▼0.16613.71 ▲6.8352.27 ▲3.69
Media Library /wp-admin/upload.php1,402 ▲114.24 ▲0.1298.39 ▼0.5241.85 ▲0.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: personalization, personalized content, form, logic hop, beaver builder

logic-hop-beaver-builder/logichop_beaver_builder.php 92% from 13 tests

The principal PHP file in "Logic Hop Personalization for Beaver Builder Add-on" v. 1.0.2 is loaded by WordPress automatically on each request
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-beaver-builder.php" instead of "logichop_beaver_builder.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 plugin409 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP291189292
JavaScript110069
CSS13048

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.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

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.43MB with 0.25MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png224.53KB94.93KB▼ 57.72%
screenshot-2.png220.25KB95.28KB▼ 56.74%