Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.58ms] Passed 4 tests
An overview of server-side resources used by WP Popover
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 35.90 ▼3.46 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.20 ▼4.18 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.63 ▲1.66 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 89.94 ▼0.34 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.37 ▲2.89 |
Add New /wp-admin/post-new.php?post_type=wpob-popover | 3.43 | 45.94 |
Setting /wp-admin/edit.php?post_type=wpob-popover&page=global_settings | 3.28 | 33.37 |
How to Use /wp-admin/edit.php?post_type=wpob-popover&page=how_to_use | 3.28 | 31.29 |
WP Popover /wp-admin/edit.php?post_type=wpob-popover | 3.35 | 36.59 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
wpobp_global_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Popover
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲211 | 13.74 ▼0.89 | 11.36 ▲9.61 | 38.75 ▼2.74 |
Dashboard /wp-admin | 2,257 ▲77 | 5.79 ▲0.15 | 86.97 ▼3.36 | 36.49 ▼5.54 |
Posts /wp-admin/edit.php | 2,164 ▲67 | 2.29 ▲0.27 | 38.19 ▼2.31 | 29.69 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 23.35 ▲0.46 | 605.83 ▲9.36 | 31.93 ▼18.02 |
Media Library /wp-admin/upload.php | 1,462 ▲59 | 4.40 ▲0.12 | 101.06 ▲1.61 | 47.68 ▲1.72 |
Add New /wp-admin/post-new.php?post_type=wpob-popover | 2,207 | 7.67 | 171.44 | 65.73 |
Setting /wp-admin/edit.php?post_type=wpob-popover&page=global_settings | 1,177 | 2.56 | 45.96 | 26.63 |
How to Use /wp-admin/edit.php?post_type=wpob-popover&page=how_to_use | 875 | 1.93 | 28.21 | 30.95 |
WP Popover /wp-admin/edit.php?post_type=wpob-popover | 1,130 | 2.24 | 37.75 | 31.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- wpobp_global_settings
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-popover/view/settings.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-popover/view/how_to_use.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-popover/wp-popover.php:52
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
9 plugin tags: popover, info, jquery popover, bootstrap popover, popup...
wp-popover/wp-popover.php 85% from 13 tests
The primary PHP file in "WP Popover" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: Required version must match the one declared in readme.txt ("3.0" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected375 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 82 | 24 | 275 |
CSS | 2 | 17 | 1 | 69 |
JavaScript | 2 | 9 | 1 | 31 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
4 PNG files occupy 0.29MB with 0.21MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 67.79KB | 17.78KB | ▼ 73.77% |
assets/screenshot-4.png | 122.29KB | 35.26KB | ▼ 71.17% |
assets/screenshot-3.png | 41.49KB | 9.46KB | ▼ 77.19% |
assets/screenshot-2.png | 64.21KB | 17.69KB | ▼ 72.46% |