90% advanced-popups

Code Review | Advanced Popups

WordPress plugin Advanced Popups scored90%from 54 tests.

About plugin

  • Plugin page: advanced-popups
  • Plugin version: 1.1.9
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 31, 2019
  • Latest release: Aug 30, 2023
  • Number of updates: 45
  • Update frequency: every 31.1 days
  • Top authors: codesupplyco (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

30,000+ active /266,673 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.30MB] [CPU: ▼0.12ms] Passed 4 tests

Server-side resources used by Advanced Popups
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2945.32 ▲3.28
Dashboard /wp-admin3.58 ▲0.2853.09 ▲3.40
Posts /wp-admin/edit.php3.70 ▲0.3448.85 ▼5.71
Add New Post /wp-admin/post-new.php6.23 ▲0.3490.64 ▼1.43
Media Library /wp-admin/upload.php3.51 ▲0.2838.70 ▲5.49
Popups /wp-admin/edit.php?post_type=adp-popup3.5539.84

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Advanced Popups: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲12313.48 ▼0.8910.04 ▲8.4040.66 ▼1.43
Dashboard /wp-admin2,199 ▲255.56 ▼0.0285.53 ▼1.4039.89 ▲1.13
Posts /wp-admin/edit.php2,107 ▲41.97 ▲0.0235.80 ▼5.6837.64 ▲1.20
Add New Post /wp-admin/post-new.php1,534 ▲623.34 ▲0.14684.51 ▼3.9560.13 ▲2.26
Media Library /wp-admin/upload.php1,407 ▲74.22 ▲0.0097.00 ▼11.4943.34 ▼4.81
Popups /wp-admin/edit.php?post_type=adp-popup1,0822.0931.4530.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: marketing, popup, popups, advertising, optin

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

"Advanced Popups" version 1.1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,797 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS5296281,929
PHP102964911,227
JavaScript3248200629
SVG10011
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity24.67
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity43.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin