84% popup-lead

Code Review | Popup Lead - Optin Email Marketing Tool for WooCommerce and Wordpress

WordPress plugin Popup Lead - Optin Email Marketing Tool for WooCommerce and Wordpress scored 84% from 54 tests.

About plugin

  • Plugin page: popup-lead
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Mar 21, 2021
  • Latest release: Mar 23, 2021
  • Number of updates: 10
  • Update frequency: every 0.6 days
  • Top authors: mikehit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 347 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 gracefully, with no errors

Server metrics [RAM: ▼0.58MB] [CPU: ▼11.29ms] Passed 4 tests

A check of server-side resources used by Popup Lead - Optin Email Marketing Tool for WooCommerce and Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1044.29 ▲1.24
Dashboard /wp-admin3.42 ▲0.1151.34 ▼1.55
Posts /wp-admin/edit.php3.53 ▲0.1768.26 ▲15.38
Add New Post /wp-admin/post-new.php3.27 ▼2.6343.25 ▼49.27
Media Library /wp-admin/upload.php3.34 ▲0.1146.29 ▲4.43

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Popup Lead - Optin Email Marketing Tool for WooCommerce and Wordpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲13913.73 ▲0.426.06 ▲1.1544.52 ▲5.18
Dashboard /wp-admin2,226 ▲204.86 ▼1.19110.72 ▲13.9838.28 ▲0.90
Posts /wp-admin/edit.php2,109 ▲172.00 ▼0.0139.88 ▲4.8634.25 ▼3.06
Add New Post /wp-admin/post-new.php1,384 ▼15817.60 ▼0.79706.55 ▲40.7845.76 ▼32.94
Media Library /wp-admin/upload.php1,408 ▲234.23 ▲0.0096.19 ▼8.1242.94 ▼2.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • mikehit_display_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/popup-lead/public/partials/popup-lead-public-display.php
    • > /wp-content/plugins/popup-lead/admin/partials/popup-lead-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #3, #4, #5 in popup-lead/assets to your readme.txt
Please take inspiration from this readme.txt

popup-lead/popup-lead.php Passed 13 tests

The main file in "Popup Lead - Optin Email Marketing Tool for WooCommerce and Wordpress" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
113 characters long description:
Tools to boost your marketing and lead gen efforts. Using popup lead is a to to increase your site's conversions!

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 detected483 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13210638441
PO File1111136
JavaScript22276
CSS2080

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.12
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods44
▷ Static methods24.55%
▷ Public methods3886.36%
▷ Protected methods00.00%
▷ Private methods613.64%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin