84% happierleads

Code Review | Happierleads - Identify your B2B website visitors even if they work remotely

WordPress plugin Happierleads - Identify your B2B website visitors even if they work remotely scored84%from 54 tests.

About plugin

  • Plugin page: happierleads
  • Plugin version: 3.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3.0
  • WordPress version: 6.3.1
  • First release: Jan 29, 2021
  • Latest release: Nov 15, 2023
  • Number of updates: 12
  • Update frequency: every 85.3 days
  • Top authors: happierleads (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /743 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Happierleads - Identify your B2B website visitors even if they work remotely
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.67 ▼4.35
Dashboard /wp-admin3.35 ▲0.0071.69 ▲8.10
Posts /wp-admin/edit.php3.40 ▲0.0443.75 ▲1.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0478.96 ▼20.81
Media Library /wp-admin/upload.php3.27 ▲0.0433.50 ▼0.35
Happierleads Settings /wp-admin/options-general.php?page=happierleads_settings3.2430.38

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Happierleads - Identify your B2B website visitors even if they work remotely
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5514.57 ▼0.172.20 ▲0.4438.66 ▼5.94
Dashboard /wp-admin2,198 ▲175.51 ▼0.20105.29 ▼11.3746.54 ▲1.09
Posts /wp-admin/edit.php2,106 ▲32.00 ▲0.0439.69 ▼0.3236.74 ▼0.02
Add New Post /wp-admin/post-new.php1,531 ▼323.16 ▼2.08687.48 ▲44.7553.20 ▼16.32
Media Library /wp-admin/upload.php1,409 ▲94.17 ▼0.0997.39 ▼5.3344.29 ▲1.04
Happierleads Settings /wp-admin/options-general.php?page=happierleads_settings8631.9922.8733.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/happierleads/index.php

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: reverse ip lookup, happierleads, lead generation, find who visited my website, lead capture

happierleads/index.php 92% from 13 tests

The main file in "Happierleads - Identify your B2B website visitors even if they work remotely" v. 3.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("happierleads.php" instead of "index.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
Good job! No executable or dangerous file extensions detected107 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2133999
JavaScript2007
CSS1101

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.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/happierleads-logo.png16.67KB9.54KB▼ 42.80%