Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▲294.46ms] 75% from 4 tests
An overview of server-side resources used by WP Post Popup
Please have a look at the following items
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 294.46ms on /wp-admin/options-general.php?page=wp-post-modal)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 47.65 ▲3.66 |
Dashboard /wp-admin | 3.56 ▲0.26 | 449.06 ▲397.08 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 455.33 ▲406.31 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 486.57 ▲392.20 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 422.93 ▲384.90 |
WP Post Popup /wp-admin/options-general.php?page=wp-post-modal | 3.39 | 436.08 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wp_post_modal_breakpoint |
db_upgraded |
wp_post_modal_button |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
wp_post_modal_wrapping |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Post Popup
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲184 | 13.87 ▼0.48 | 9.98 ▲8.06 | 42.26 ▼0.50 |
Dashboard /wp-admin | 2,257 ▲80 | 5.59 ▼0.03 | 96.00 ▼4.13 | 45.22 ▲1.18 |
Posts /wp-admin/edit.php | 2,166 ▲66 | 2.15 ▲0.19 | 36.27 ▼1.65 | 39.57 ▲3.59 |
Add New Post /wp-admin/post-new.php | 1,585 ▲57 | 18.18 ▼5.01 | 640.15 ▼43.15 | 74.37 ▲24.16 |
Media Library /wp-admin/upload.php | 1,465 ▲68 | 4.21 ▲0.02 | 107.43 ▲2.00 | 46.80 ▲3.82 |
WP Post Popup /wp-admin/options-general.php?page=wp-post-modal | 1,104 | 1.96 | 29.97 | 36.63 |
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
These items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- wp_post_modal_breakpoint
- widget_recent-posts
- can_compress_scripts
- wp_post_modal_wrapping
- widget_recent-comments
- wp_post_modal_button
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-post-modal/public/partials/wp-post-modal-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-post-modal/admin/partials/wp-post-modal-admin-display.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=wp-post-modal
- > Network (severe)
wp-content/plugins/images/var/www/wordpress/wp-content/plugins/wp-post-modal/admin/class-wp-post-modal-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: modal, popup
wp-post-modal/wp-post-modal.php Passed 13 tests
The principal PHP file in "WP Post Popup" v. 3.7.3 is loaded by WordPress automatically on each request
128 characters long description:
This plugin allows any content to be pulled into a modal window dynamically. To use, just create a link with class "modal-link".
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,414 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 183 | 710 | 707 |
JavaScript | 3 | 50 | 78 | 407 |
CSS | 2 | 39 | 13 | 190 |
Markdown | 1 | 35 | 0 | 110 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 2 | 3.85% |
▷ Public methods | 47 | 90.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.62% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin