89% poptin

Code Review | Pop ups, WordPress Exit Intent Popup, Email Pop Up, Lightbox Pop Up, Spin the Wheel, Contact Form Builder – Poptin

WordPress plugin Pop ups, WordPress Exit Intent Popup, Email Pop Up, Lightbox Pop Up, Spin the Wheel, Contact Form Builder – Poptin scored89%from 54 tests.

About plugin

  • Plugin page: poptin
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.3
  • WordPress version: 6.3.1
  • First release: Aug 20, 2017
  • Latest release: Oct 10, 2023
  • Number of updates: 213
  • Update frequency: every 10.5 days
  • Top authors: galdub (100%)

Code review

54 tests

User reviews

473 reviews

Install metrics

20,000+ active /245,648 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.82ms] Passed 4 tests

Server-side resources used by Pop ups, WordPress Exit Intent Popup, Email Pop Up, Lightbox Pop Up, Spin the Wheel, Contact Form Builder – Poptin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.49 ▼3.94
Dashboard /wp-admin3.44 ▲0.1349.49 ▼5.45
Posts /wp-admin/edit.php3.55 ▲0.1951.21 ▲2.59
Add New Post /wp-admin/post-new.php6.02 ▲0.1387.69 ▼8.48
Media Library /wp-admin/upload.php3.36 ▲0.1340.77 ▲5.78

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 89 new files
Database: no new tables, 11 new options
New WordPress options
theysaidso_admin_options
poptin_show_affiliate_box_after
widget_recent-comments
poptin_user_id
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
poptin_id
poptin_marketplace_token
...

Browser metrics Passed 4 tests

A check of browser resources used by Pop ups, WordPress Exit Intent Popup, Email Pop Up, Lightbox Pop Up, Spin the Wheel, Contact Form Builder – Poptin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.18 ▼1.441.63 ▼0.3440.98 ▼4.08
Dashboard /wp-admin2,214 ▲265.84 ▲0.81107.78 ▼9.6961.73 ▲18.28
Posts /wp-admin/edit.php2,103 ▲141.97 ▼0.0438.06 ▲1.4332.97 ▼1.70
Add New Post /wp-admin/post-new.php1,549 ▲1918.80 ▲0.40703.05 ▲62.9059.32 ▼1.20
Media Library /wp-admin/upload.php1,393 ▲54.24 ▲0.05102.53 ▼2.5673.44 ▲23.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • poptin_show_affiliate_box_after
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

poptin/poptin.php Passed 13 tests

The principal PHP file in "Pop ups, WordPress Exit Intent Popup, Email Pop Up, Lightbox Pop Up, Spin the Wheel, Contact Form Builder – Poptin" v. 1.3.1 is loaded by WordPress automatically on each request
137 characters long description:
Use Poptin to get more leads, sales, and email subscribers. Create targeted beautiful pop ups and forms in less than 2 minutes with ease.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,778 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP41092791,352
CSS214024792
SVG2202461
JavaScript21711173

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity25.00
▷ Minimum class complexity10.00
▷ Maximum class complexity40.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1785.00%
▷ Protected methods00.00%
▷ Private methods315.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
54 PNG files occupy 1.90MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/user-id-3.png75.11KB30.49KB▼ 59.41%
assets/images/Liraz-P.png17.77KB17.77KB0.00%
assets/images/reviewframe.png47.56KB7.28KB▼ 84.70%
assets/images/Myriam-Plamondon.png8.90KB4.10KB▼ 53.95%
assets/images/vicon.png4.25KB2.78KB▼ 34.62%