78% smart-popup-blaster

Code Review | Smart PopUp Blaster

WordPress plugin Smart PopUp Blaster scored78%from 54 tests.

About plugin

  • Plugin page: smart-popup-blaster
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 7, 2015
  • Latest release: Feb 6, 2023
  • Number of updates: 68
  • Update frequency: every 38.9 days
  • Top authors: MarinMatosevic (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /9,344 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.93ms] Passed 4 tests

A check of server-side resources used by Smart PopUp Blaster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.06 ▼1.74
Dashboard /wp-admin3.34 ▲0.0345.81 ▼7.16
Posts /wp-admin/edit.php3.39 ▲0.0345.28 ▼1.28
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.18 ▼8.78
Media Library /wp-admin/upload.php3.26 ▲0.0332.89 ▼2.03
Add New PopUp /wp-admin/post-new.php?post_type=spb3.3950.24
All PopUps /wp-admin/edit.php?post_type=spb3.3036.59
Help /wp-admin/edit.php?post_type=spb&page=submenu-handle3.2330.57

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smart PopUp Blaster
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲21213.70 ▼0.686.70 ▲4.9043.52 ▼6.45
Dashboard /wp-admin2,237 ▲465.85 ▼0.06102.22 ▼0.2939.72 ▼1.87
Posts /wp-admin/edit.php2,126 ▲372.01 ▼0.0338.85 ▲1.1835.57 ▲2.95
Add New Post /wp-admin/post-new.php1,559 ▲4023.29 ▼0.00652.18 ▼11.0556.38 ▼1.59
Media Library /wp-admin/upload.php1,422 ▲314.18 ▲0.0497.66 ▼8.7943.62 ▼1.08
Add New PopUp /wp-admin/post-new.php?post_type=spb3,7398.27237.6086.56
All PopUps /wp-admin/edit.php?post_type=spb1,1161.9330.5229.34
Help /wp-admin/edit.php?post_type=spb&page=submenu-handle9031.9923.4643.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/smart-popup-blaster/admin/shortcodes.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-popup-blaster/admin/popup_setup.php:76
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/smart-popup-blaster/assets/css/custom.css.php:45

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/post-new.php?post_type=spb
    • > Network (severe)
    wp-content/plugins/smart-popup-blaster/assets/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=spb
    • > Network (severe)
    wp-content/plugins/smart-popup-blaster/assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=spb
    • > Network (severe)
    wp-content/plugins/smart-popup-blaster/assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: subscribe, popups, blaster, popup, add...

smart-popup-blaster/smart-popup-blaster.php 92% from 13 tests

The main PHP file in "Smart PopUp Blaster" ver. 1.4.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)

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
Everything looks great! No dangerous files found in this plugin4,249 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS2484623,043
PHP712131876
JavaScript2687330

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin