78% fizzy-popups

Code Review | Fizzy Popups | Fastest Popups Builder (With Elementor Widget)

WordPress plugin Fizzy Popups | Fastest Popups Builder (With Elementor Widget) scored78%from 54 tests.

About plugin

  • Plugin page: fizzy-popups
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2021
  • Latest release: Jul 10, 2021
  • Number of updates: 5
  • Update frequency: every 7.2 days
  • Top authors: lovelightplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /428 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.69ms] Passed 4 tests

A check of server-side resources used by Fizzy Popups | Fastest Popups Builder (With Elementor Widget)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.71 ▼2.32
Dashboard /wp-admin3.40 ▲0.0944.75 ▼5.56
Posts /wp-admin/edit.php3.51 ▲0.1549.58 ▲1.63
Add New Post /wp-admin/post-new.php5.98 ▲0.0982.94 ▼8.51
Media Library /wp-admin/upload.php3.32 ▲0.0934.24 ▲1.92

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Fizzy Popups | Fastest Popups Builder (With Elementor Widget)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲10814.27 ▲0.111.85 ▲0.2937.02 ▼5.32
Dashboard /wp-admin2,250 ▲705.65 ▼0.0289.20 ▲2.1337.97 ▼4.79
Posts /wp-admin/edit.php2,155 ▲521.99 ▲0.0239.91 ▲5.9237.56 ▲4.64
Add New Post /wp-admin/post-new.php1,546 ▲1723.52 ▲0.33691.74 ▲19.9553.66 ▲0.89
Media Library /wp-admin/upload.php1,455 ▲524.36 ▲0.1398.51 ▲1.5942.31 ▼2.82
Support /wp-admin/admin.php?page=fizzypopups#/support1,3346.73206.8835.18
All Popups /wp-admin/admin.php?page=fizzypopups#/1,3976.42248.4735.74

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 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/fizzy-popups/app/Views/Frontend/Elements/ComponentHtml.php
    • > /wp-content/plugins/fizzy-popups/app/Views/Admin/AdminView.php
    • > /wp-content/plugins/fizzy-popups/app/Views/Frontend/Css/_component_spacing.php
  • 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: prefix in wp-content/plugins/fizzy-popups/app/Views/Frontend/Css/_component_spacing.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/fizzy-popups/app/Views/Frontend/Elements/ComponentSeparator.php:2
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/fizzy-popups/app/Views/Frontend/Elements/ComponentHtml.php on line 2
    • > PHP Notice
      Undefined variable: element in wp-content/plugins/fizzy-popups/app/Views/Frontend/Css/_component_spacing.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/fizzy-popups/app/Views/Frontend/Elements/ComponentSpacing.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/fizzy-popups/app/Views/Frontend/Elements/ComponentHtml.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/fizzy-popups/app/Views/Frontend/Elements/ComponentButton.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/fizzy-popups/app/Views/Frontend/Css/_component_spacing.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/fizzy-popups/app/Views/Frontend/Elements/ComponentHtml.php on line 3
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/fizzy-popups/app/Views/Frontend/Elements/ComponentHtml.php on line 3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #5 (Your customized Fizzy Popups in frontend)
You can look at the official readme.txt

fizzy-popups/fizzy-popups.php 92% from 13 tests

Analyzing the main PHP file in "Fizzy Popups | Fastest Popups Builder (With Elementor Widget)" version 1.2.1
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 plugin1,094 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP25136901,064
CSS24020
JSON1007
JavaScript3013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.11
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods42
▷ Static methods511.90%
▷ Public methods3992.86%
▷ Protected methods37.14%
▷ Private methods00.00%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants6
▷ Global constants6100.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
13 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/popups/layout-four.png10.92KB3.55KB▼ 67.50%
public/images/support/heart.png17.45KB1.61KB▼ 90.77%
public/images/popups/christmas-sale.png30.98KB31.11KB0.00%
public/images/support/support.png15.43KB0.97KB▼ 93.72%
public/images/popups/layout-two.png9.71KB9.94KB0.00%