Benchmarks
Plugin footprint Passed 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.01MB] [CPU: ▼141.83ms] Passed 4 tests
An overview of server-side resources used by Very Simple wp Popup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.21 ▲11.59 |
Dashboard /wp-admin | 3.07 ▲0.02 | 43.17 ▲0.14 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 43.51 ▼1.57 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 90.72 ▼557.54 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 31.20 ▼8.34 |
VSWP Popup /wp-admin/options-general.php?page=very-simple-wp-popup-settings | 3.05 | 29.07 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Very Simple wp Popup
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,694 ▲98 | 16.01 ▲0.55 | 9.62 ▲2.65 | 48.07 ▼0.73 |
Dashboard /wp-admin | 2,977 ▲40 | 5.97 ▲0.04 | 133.15 ▼16.13 | 115.04 ▲3.64 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.70 ▼0.01 | 63.75 ▲3.26 | 90.21 ▼4.27 |
Add New Post /wp-admin/post-new.php | 1,689 ▲11 | 16.46 ▼2.31 | 342.47 ▼13.67 | 109.55 ▼12.86 |
Media Library /wp-admin/upload.php | 1,817 ▲7 | 5.05 ▲0.00 | 158.98 ▲3.32 | 119.78 ▼0.12 |
VSWP Popup /wp-admin/options-general.php?page=very-simple-wp-popup-settings | 1,469 | 2.09 | 50.30 | 82.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=very-simple-wp-popup-settings
- > Notice in wp-content/plugins/very-simple-wp-popup/shared/vswpp-class-deserializer.php+36
Undefined variable: ouput
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: popup, pop-up
very-simple-wp-popup/very-simple-wp-popup-settings.php 92% from 13 tests
The principal PHP file in "Very Simple wp Popup" v. 1.6 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("very-simple-wp-popup.php" instead of "very-simple-wp-popup-settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin928 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 30 | 252 | 378 |
JavaScript | 2 | 66 | 32 | 328 |
CSS | 2 | 18 | 9 | 172 |
PO File | 1 | 17 | 17 | 50 |
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.14 |
Average class complexity | 3.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/left.png | 10.92KB | 1.11KB | ▼ 89.83% |
public/img/right.png | 11.00KB | 1.11KB | ▼ 89.90% |
admin/img/close.png | 30.04KB | 10.56KB | ▼ 64.85% |
public/img/close.png | 30.04KB | 10.56KB | ▼ 64.85% |