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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 46.80 ▲5.45 |
Dashboard /wp-admin | 3.50 ▲0.20 | 61.19 ▲5.18 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 51.32 ▼10.01 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 93.63 ▼10.53 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 41.32 ▲6.35 |
Add New /wp-admin/post-new.php?post_type=sayonara | 3.63 | 56.94 |
All Sayonaras /wp-admin/edit.php?post_type=sayonara | 3.48 | 40.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 13.45 ▼1.17 | 8.71 ▲6.57 | 43.05 ▼1.22 |
Dashboard /wp-admin | 2,236 ▲62 | 5.67 ▲0.10 | 88.32 ▲3.22 | 44.08 ▲2.27 |
Posts /wp-admin/edit.php | 2,144 ▲41 | 2.01 ▲0.02 | 38.81 ▼3.23 | 35.41 ▼5.99 |
Add New Post /wp-admin/post-new.php | 1,549 ▲11 | 23.23 ▲4.97 | 685.35 ▲42.45 | 64.07 ▼6.47 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.20 ▲0.05 | 99.13 ▲0.80 | 43.17 ▼2.17 |
Add New /wp-admin/post-new.php?post_type=sayonara | 3,062 | 7.82 | 227.39 | 81.46 |
All Sayonaras /wp-admin/edit.php?post_type=sayonara | 1,158 | 2.22 | 48.56 | 31.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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 241 | 621 | 961 |
Sass | 2 | 76 | 19 | 252 |
JavaScript | 3 | 47 | 4 | 211 |
CSS | 3 | 0 | 0 | 3 |
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 code | 0.40 |
Average class complexity | 17.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 38 | 88.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.63% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/sayonara.png | 39.78KB | 15.91KB | ▼ 60.00% |