84% promolayer-popup-builder

Code Review | Pop ups, Exit intent popups, email popups, banners, bars, countdowns and cart savers - Promolayer

WordPress plugin Pop ups, Exit intent popups, email popups, banners, bars, countdowns and cart savers - Promolayer scored84%from 54 tests.

About plugin

  • Plugin page: promolayer-popup-...
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2022
  • Latest release: Jul 14, 2023
  • Number of updates: 17
  • Update frequency: every 27.2 days
  • Top authors: promolayerpopupbuilder (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /7,226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.16ms] Passed 4 tests

This is a short check of server-side resources used by Pop ups, Exit intent popups, email popups, banners, bars, countdowns and cart savers - Promolayer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.57 ▲0.40
Dashboard /wp-admin3.40 ▲0.1044.00 ▼4.16
Posts /wp-admin/edit.php3.52 ▲0.1644.81 ▼2.46
Add New Post /wp-admin/post-new.php5.98 ▲0.0991.14 ▼9.11
Media Library /wp-admin/upload.php3.33 ▲0.0934.50 ▼0.89

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pop ups, Exit intent popups, email popups, banners, bars, countdowns and cart savers - Promolayer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲14013.86 ▼0.519.30 ▲7.4646.60 ▲4.09
Dashboard /wp-admin2,274 ▲914.83 ▼0.07110.31 ▼13.2837.54 ▼9.07
Posts /wp-admin/edit.php2,161 ▲722.07 ▲0.0738.11 ▲2.1529.88 ▼1.75
Add New Post /wp-admin/post-new.php1,567 ▲4818.41 ▼4.89623.94 ▼78.8949.84 ▼4.05
Media Library /wp-admin/upload.php1,459 ▲714.20 ▼0.02100.59 ▼8.6243.81 ▼8.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • promolayer_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Promolayer' not found in wp-content/plugins/promolayer-popup-builder/admin/partials/promolayer-admin-display.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: spin to win, abandonment, popup builder, exit intent, coupon wheel...

promolayer-popup-builder/promolayer.php 92% from 13 tests

The main file in "Pop ups, Exit intent popups, email popups, banners, bars, countdowns and cart savers - Promolayer" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("promolayer-popup-builder.php" instead of "promolayer.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
No dangerous file extensions were detected960 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP11164510568
CSS100215
PO File1354193
JavaScript112262
SVG40022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.86
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods410.53%
▷ Public methods3284.21%
▷ Protected methods00.00%
▷ Private methods615.79%
Functions9
▷ Named functions333.33%
▷ Anonymous functions666.67%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png16.30KB6.45KB▼ 60.46%
assets/images/user-icon.png1.68KB1.60KB▼ 5.05%
assets/banner-1544x500.png31.81KB11.87KB▼ 62.67%
assets/images/rating-stars.png6.45KB6.90KB0.00%