94% sayonara

Code Review | Sayonara - Advanced Popup Builder

WordPress plugin Sayonara - Advanced Popup Builder scored 94% from 54 tests.

About plugin

  • Plugin page: sayonara
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.2
  • WordPress version: 5.9.2
  • First release: Feb 21, 2020
  • Latest release: Jul 3, 2020
  • Number of updates: 7
  • Update frequency: every 19.0 days
  • Top authors: bouncingsprout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 270 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼291.80ms] Passed 4 tests

Analyzing server-side resources used by Sayonara - Advanced Popup Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.2757.41 ▲5.81
Dashboard /wp-admin3.61 ▲0.2159.90 ▲25.85
Posts /wp-admin/edit.php3.84 ▲0.2039.67 ▲3.12
Add New Post /wp-admin/post-new.php7.08 ▲0.11101.41 ▼1,176.33
Media Library /wp-admin/upload.php3.56 ▲0.2624.96 ▲0.20
All Sayonaras /wp-admin/edit.php?post_type=sayonara3.6128.25
Add New /wp-admin/post-new.php?post_type=sayonara3.8546.61

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Sayonara - Advanced Popup Builder: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,957 ▲20316.27 ▲0.3111.13 ▲5.1118.54 ▲15.83
Dashboard /wp-admin2,940 ▲796.11 ▼0.06122.61 ▼11.94166.69 ▲3.64
Posts /wp-admin/edit.php2,739 ▲483.38 ▲0.1464.36 ▼1.33171.43 ▲23.95
Add New Post /wp-admin/post-new.php1,684 ▼7415.92 ▼6.38420.79 ▼34.27160.39 ▲12.13
Media Library /wp-admin/upload.php1,750 ▲525.52 ▲0.03142.25 ▲0.84185.60 ▲0.66
All Sayonaras /wp-admin/edit.php?post_type=sayonara1,4793.7378.37157.69
Add New /wp-admin/post-new.php?post_type=sayonara4,13210.49246.13206.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/sayonara/admin/partials/sayonara-admin-display.php

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in sayonara/assets to your readme.txt
You can look at the official readme.txt

sayonara/sayonara.php Passed 13 tests

The principal PHP file in "Sayonara - Advanced Popup Builder" v. 1.0.1 is loaded by WordPress automatically on each request
68 characters long description:
Finally. An advanced popup that doesn't need a monthly subscription!

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 plugin1,427 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP17241621961
Sass27619252
JavaScript3474211
CSS3003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity17.25
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity4.02
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3888.37%
▷ Protected methods00.00%
▷ Private methods511.63%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/sayonara.png39.78KB15.91KB▼ 60.00%