Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼1.87ms] Passed 4 tests
A check of server-side resources used by Welcome Popup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.19 | 37.92 ▼4.86 |
Dashboard /wp-admin | 3.48 ▲0.14 | 51.61 ▼0.52 |
Posts /wp-admin/edit.php | 3.60 ▲0.20 | 51.43 ▲1.21 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.14 | 95.09 ▲5.58 |
Media Library /wp-admin/upload.php | 3.41 ▲0.14 | 37.07 ▼3.32 |
Welcome Popup /wp-admin/options-general.php?page=welcome_popup_page | 3.46 | 44.88 |
Server storage [IO: ▲0.22MB] [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: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
welcome_popup_settings |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Welcome Popup: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,084 ▲323 | 13.83 ▼0.43 | 29.40 ▲27.58 | 47.47 ▲6.49 |
Dashboard /wp-admin | 2,199 ▲28 | 5.65 ▼0.05 | 89.48 ▼4.12 | 40.40 ▼2.62 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.02 ▼0.02 | 39.23 ▲0.87 | 38.24 ▲4.12 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 18.22 ▼4.90 | 635.06 ▼52.27 | 71.82 ▲18.22 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▲0.02 | 99.04 ▼3.31 | 39.87 ▼8.77 |
Welcome Popup /wp-admin/options-general.php?page=welcome_popup_page | 2,712 | 7.96 | 189.93 | 127.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/welcome-popup/welcome_popup.php+88
Undefined variable: default_value
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/welcome-popup/welcome_popup.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: hello bar, popup bar, wordpress popup, welcome popup, first visit popup...
welcome-popup/welcome_popup.php 85% from 13 tests
The main PHP file in "Welcome Popup" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("welcome-popup.php" instead of "welcome_popup.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 247 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,560 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 267 | 572 | 1,724 |
CSS | 3 | 353 | 110 | 1,027 |
PHP | 2 | 81 | 136 | 657 |
PO File | 4 | 44 | 60 | 152 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 18.40KB | 0.69KB | ▼ 96.27% |
images/default.png | 4.13KB | 2.42KB | ▼ 41.32% |
images/logo.png | 0.24KB | 0.25KB | 0.00% |