84% logic-hop-drip-add-on

Code Review | Logic Hop Drip Add-on

WordPress plugin Logic Hop Drip Add-on scored84%from 54 tests.

About plugin

  • Plugin page: logic-hop-drip-ad...
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Oct 21, 2018
  • Latest release: Jul 12, 2021
  • Number of updates: 7
  • Update frequency: every 142.1 days
  • Top authors: logichop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /785 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼7.02ms] Passed 4 tests

An overview of server-side resources used by Logic Hop Drip Add-on
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1638.24 ▼3.30
Dashboard /wp-admin3.46 ▲0.1644.09 ▼4.92
Posts /wp-admin/edit.php3.58 ▲0.2243.93 ▼2.02
Add New Post /wp-admin/post-new.php6.04 ▲0.1589.88 ▼17.84
Media Library /wp-admin/upload.php3.39 ▲0.1534.63 ▼1.32

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Logic Hop Drip Add-on
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9613.57 ▼0.802.16 ▲0.3745.57 ▲1.80
Dashboard /wp-admin2,220 ▲325.84 ▼0.06100.06 ▼5.0738.61 ▼2.39
Posts /wp-admin/edit.php2,105 ▲342.02 ▼0.0436.37 ▼0.1432.58 ▼3.85
Add New Post /wp-admin/post-new.php1,550 ▲3123.44 ▲0.25666.93 ▲55.8253.95 ▼3.61
Media Library /wp-admin/upload.php1,405 ▲144.23 ▲0.0396.82 ▼7.7440.80 ▼3.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/logic-hop-drip-add-on/admin/settings.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: drip, personalized content, logic hop, personalization, personalized marketing

logic-hop-drip-add-on/logichop_drip.php 92% from 13 tests

This is the main PHP file of "Logic Hop Drip Add-on" version 3.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("logic-hop-drip-add-on.php" instead of "logichop_drip.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected849 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3154337798
JavaScript36044
CSS1007

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity99.00
▷ Minimum class complexity99.00
▷ Maximum class complexity99.00
Average method complexity6.16
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.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 were not PNG files found in your plugin