89% jazz-popups

Code Review | Jazz Popups

WordPress plugin Jazz Popups scored 89% from 54 tests.

About plugin

  • Plugin page: jazz-popups
  • Plugin version: 1.8.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 5.9.2
  • First release: Jan 8, 2015
  • Latest release: Oct 23, 2018
  • Number of updates: 36
  • Update frequency: every 38.5 days
  • Top authors: amirk27 (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active / 20,097 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.09MB] [CPU: ▼293.74ms] Passed 4 tests

A check of server-side resources used by Jazz Popups
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1455.78 ▲3.24
Dashboard /wp-admin3.53 ▲0.1235.16 ▲0.70
Posts /wp-admin/edit.php3.76 ▲0.1140.97 ▲2.74
Add New Post /wp-admin/post-new.php7.00 ▲0.0397.13 ▼1,173.29
Media Library /wp-admin/upload.php3.41 ▲0.1025.16 ▼5.09

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: 1 new table, 1 new option
New tables
wp_notify
New WordPress options
jal_db_version

Browser metrics Passed 4 tests

An overview of browser requirements for Jazz Popups
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,938 ▲19615.98 ▲0.3610.16 ▲3.342.29 ▲0.26
Dashboard /wp-admin2,928 ▲676.40 ▲0.19122.03 ▼14.4574.41 ▼88.97
Posts /wp-admin/edit.php2,723 ▲323.13 ▼0.1060.61 ▼6.0369.92 ▼82.74
Add New Post /wp-admin/post-new.php1,689 ▲2816.49 ▼0.49448.76 ▲11.52134.33 ▼15.18
Media Library /wp-admin/upload.php1,738 ▲405.75 ▲0.17126.36 ▼7.35159.22 ▼34.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • jal_db_version

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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === jazz-popups === )
You can take inspiration from this readme.txt

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

The entry point to "Jazz Popups" version 1.8.7 is a PHP file that has certain tags in its header comment area
102 characters long description:
Jazz Popups allow you to add special announcement, message or offers in form of text, image and video.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,637 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript54452241,634
CSS371561,140
PHP180110863

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
13 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/paypal.png15.44KB8.09KB▼ 47.60%
images/no-image.png29.38KB12.33KB▼ 58.02%
images/delete.png0.13KB0.14KB0.00%
images/off - Copy.png3.74KB1.14KB▼ 69.52%
images/crox.png2.29KB1.94KB▼ 15.62%