84% sayonara

Code Review | Sayonara - Advanced Popup Builder

WordPress plugin Sayonara - Advanced Popup Builder scored84%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: 6.3.1
  • 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 /447 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼2.48ms] Passed 4 tests

An overview of server-side resources used by Sayonara - Advanced Popup Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2046.80 ▲5.45
Dashboard /wp-admin3.50 ▲0.2061.19 ▲5.18
Posts /wp-admin/edit.php3.62 ▲0.2751.32 ▼10.01
Add New Post /wp-admin/post-new.php6.09 ▲0.2093.63 ▼10.53
Media Library /wp-admin/upload.php3.43 ▲0.2041.32 ▲6.35
Add New /wp-admin/post-new.php?post_type=sayonara3.6356.94
All Sayonaras /wp-admin/edit.php?post_type=sayonara3.4840.62

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Sayonara - Advanced Popup Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲15613.45 ▼1.178.71 ▲6.5743.05 ▼1.22
Dashboard /wp-admin2,236 ▲625.67 ▲0.1088.32 ▲3.2244.08 ▲2.27
Posts /wp-admin/edit.php2,144 ▲412.01 ▲0.0238.81 ▼3.2335.41 ▼5.99
Add New Post /wp-admin/post-new.php1,549 ▲1123.23 ▲4.97685.35 ▲42.4564.07 ▼6.47
Media Library /wp-admin/upload.php1,447 ▲474.20 ▲0.0599.13 ▲0.8043.17 ▼2.17
Add New /wp-admin/post-new.php?post_type=sayonara3,0627.82227.3981.46
All Sayonaras /wp-admin/edit.php?post_type=sayonara1,1582.2248.5631.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/sayonara/admin/partials/sayonara-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots lack descriptions #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 primary PHP file in "Sayonara - Advanced Popup Builder" version 1.0.1 is used by WordPress to initiate all plugin functionality
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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,427 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP17241621961
Sass27619252
JavaScript3474211
CSS3003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%