84% logic-hop-convertkit-add-on

Code Review | Logic Hop ConvertKit Add-on

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

About plugin

  • Plugin page: logic-hop-convert...
  • Plugin version: 3.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-5.8
  • WordPress version: 6.3.1
  • First release: Jul 11, 2018
  • Latest release: Jul 12, 2021
  • Number of updates: 17
  • Update frequency: every 67.4 days
  • Top authors: logichop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼8.69ms] Passed 4 tests

Analyzing server-side resources used by Logic Hop ConvertKit Add-on
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1536.26 ▼4.38
Dashboard /wp-admin3.44 ▲0.1445.46 ▼2.68
Posts /wp-admin/edit.php3.56 ▲0.2046.53 ▼1.32
Add New Post /wp-admin/post-new.php6.02 ▲0.1494.86 ▼26.38
Media Library /wp-admin/upload.php3.37 ▲0.1435.07 ▲0.18

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Logic Hop ConvertKit Add-on
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.24 ▼1.071.65 ▲0.0442.47 ▲1.77
Dashboard /wp-admin2,223 ▲325.87 ▼0.02101.03 ▼0.2239.61 ▼4.39
Posts /wp-admin/edit.php2,102 ▲132.01 ▼0.0436.57 ▼4.9535.64 ▲0.45
Add New Post /wp-admin/post-new.php1,546 ▲1223.16 ▼0.06603.56 ▼68.3251.80 ▼4.53
Media Library /wp-admin/upload.php1,402 ▲144.21 ▲0.1098.49 ▼10.7943.15 ▼2.65

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-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/logic-hop-convertkit-add-on/admin/settings.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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: personalized marketing, personalized content, logic hop, convertkit, personalization

logic-hop-convertkit-add-on/logichop_convertkit.php 92% from 13 tests

The entry point to "Logic Hop ConvertKit Add-on" version 3.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("logic-hop-convertkit-add-on.php" instead of "logichop_convertkit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin848 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3180352797
JavaScript36044
CSS1007

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity99.00
▷ Minimum class complexity99.00
▷ Maximum class complexity99.00
Average method complexity5.67
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected