100% advanced-popups

Code Review | Advanced Popups

WordPress plugin Advanced Popups scored 100% from 54 tests.

About plugin

  • Plugin page: advanced-popups
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Oct 31, 2019
  • Latest release: Jan 23, 2022
  • Number of updates: 32
  • Update frequency: every 26.9 days
  • Top authors: codesupplyco (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10,000+ active / 81,878 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.27MB] [CPU: ▼291.09ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Popups
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3555.18 ▲4.62
Dashboard /wp-admin3.69 ▲0.2935.37 ▲1.29
Posts /wp-admin/edit.php3.92 ▲0.2838.60 ▲2.46
Add New Post /wp-admin/post-new.php7.23 ▲0.26101.03 ▼1,166.27
Media Library /wp-admin/upload.php3.57 ▲0.2727.33 ▼1.83
Popups /wp-admin/edit.php?post_type=adp-popup3.6728.49

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Popups
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,909 ▲15516.26 ▲0.5910.04 ▲3.542.53 ▲0.11
Dashboard /wp-admin2,897 ▲366.17 ▼0.02119.82 ▼13.39155.94 ▼5.97
Posts /wp-admin/edit.php2,697 ▲73.24 ▲0.0162.67 ▲2.13140.11 ▼5.28
Add New Post /wp-admin/post-new.php1,680 ▲1922.25 ▲5.70463.42 ▲44.09165.28 ▲5.89
Media Library /wp-admin/upload.php1,707 ▲95.52 ▲0.05143.50 ▲0.68195.13 ▲3.80
Popups /wp-admin/edit.php?post_type=adp-popup1,3822.9261.15113.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: popup, popups, advertising, optin, marketing

advanced-popups/advanced-popups.php Passed 13 tests

Analyzing the main PHP file in "Advanced Popups" version 1.1.3
124 characters long description:
Display high-converting newsletter popups, a cookie notice, or a notification with the light-weight yet feature-rich plugin.

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
Good job! No executable or dangerous file extensions detected3,794 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS5296281,929
PHP102944911,210
JavaScript3250200643
SVG10011
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity24.00
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity5.31
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected