Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼295.75ms] Passed 4 tests
An overview of server-side resources used by DW PopUp Card
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.10 | 57.10 ▲8.26 |
Dashboard /wp-admin | 3.48 ▲0.07 | 35.63 ▲3.24 |
Posts /wp-admin/edit.php | 3.72 ▲0.07 | 36.40 ▼0.15 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.02 | 93.70 ▼1,184.75 |
Media Library /wp-admin/upload.php | 3.37 ▲0.07 | 23.19 ▼1.35 |
DW PopUp Card /wp-admin/options-general.php?page=dw-popup-card | 4.45 | 32.93 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by DW PopUp Card
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,989 ▲267 | 17.11 ▲1.50 | 13.51 ▲7.55 | 2.67 ▼0.14 |
Dashboard /wp-admin | 2,914 ▲53 | 6.83 ▲0.67 | 119.77 ▼15.86 | 154.34 ▼8.54 |
Posts /wp-admin/edit.php | 2,716 ▲31 | 3.53 ▲0.16 | 66.11 ▼3.40 | 164.42 ▲14.07 |
Add New Post /wp-admin/post-new.php | 1,684 ▲23 | 16.42 ▼0.28 | 464.93 ▲52.38 | 188.67 ▲35.12 |
Media Library /wp-admin/upload.php | 1,721 ▲23 | 6.05 ▲0.52 | 114.60 ▼36.54 | 182.58 ▲0.58 |
DW PopUp Card /wp-admin/options-general.php?page=dw-popup-card | 6,330 | 9.62 | 182.90 | 204.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dw-popup-card
- > Notice in wp-content/plugins/dw-popup-card/dw-popup-card-option.php+276
Undefined property: stdClass::$regular
SRP 50% from 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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/dw-popup-card/dw-popup-card.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dw-popup-card/dw-popup-card-option.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Back-end settings), #2 (E-card appearance), #3 (E-card opening)
dw-popup-card/dw-popup-card.php Passed 13 tests
The main file in "DW PopUp Card" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
43 characters long description:
Custom pop up card for your Wordpress Site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,186 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 25 | 11 | 430 |
CSS | 1 | 8 | 5 | 361 |
SVG | 1 | 0 | 0 | 243 |
JavaScript | 4 | 26 | 25 | 152 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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 | 12 | |
▷ Named functions | 12 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/close.png | 1.11KB | 0.21KB | ▼ 81.47% |
assets/img/badge.png | 25.23KB | 9.04KB | ▼ 64.17% |
assets/img/christmas-banner.png | 12.20KB | 5.08KB | ▼ 58.33% |
assets/img/snow3q.png | 7.34KB | 2.65KB | ▼ 63.83% |
assets/img/snow2l.png | 3.40KB | 1.68KB | ▼ 50.56% |