Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.65ms] Passed 4 tests
This is a short check of server-side resources used by Popup Anywhere
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.15 ▲3.23 |
Dashboard /wp-admin | 3.41 ▲0.11 | 46.49 ▼1.41 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.00 ▼2.24 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 88.85 ▼6.82 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.21 ▼0.11 |
Server storage [IO: ▲4.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Popup Anywhere: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 13.77 ▼0.96 | 8.63 ▲6.81 | 38.04 ▼7.24 |
Dashboard /wp-admin | 2,211 ▲34 | 5.62 ▼0.02 | 85.18 ▼0.50 | 38.39 ▼6.26 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.97 ▼0.19 | 38.44 ▲0.03 | 34.18 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,549 ▲14 | 18.13 ▲0.06 | 615.54 ▼43.65 | 68.69 ▲2.97 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.19 ▼0.01 | 95.50 ▼1.87 | 40.44 ▼3.18 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/popup-anywhere/template/render_image_popup_anywhere.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/popup-anywhere/template/render_external_popup_anywhere.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/popup-anywhere/core/options_popup_anywhere.php:20
- > PHP Notice
Undefined variable: popup_attr in wp-content/plugins/popup-anywhere/template/shortcode.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/popup-anywhere/template/shortcode.php:3
- > PHP Notice
Undefined variable: imageL in wp-content/plugins/popup-anywhere/template/render_image_popup_anywhere.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/popup-anywhere/template/shortcode.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/popup-anywhere/jwext-popup-anywhere.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/popup-anywhere/template/render_content_popup_anywhere.php:3
- > PHP Notice
Undefined variable: popup_attr in wp-content/plugins/popup-anywhere/template/shortcode.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #4, #5 in popup-anywhere/assets to your readme.txt
popup-anywhere/jwext-popup-anywhere.php 92% from 13 tests
Analyzing the main PHP file in "Popup Anywhere" version 1.0
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("popup-anywhere.php" instead of "jwext-popup-anywhere.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin99,899 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 4 | 28 | 64,289 |
JavaScript | 4 | 7,791 | 707 | 34,721 |
PHP | 7 | 168 | 143 | 820 |
PO File | 1 | 25 | 26 | 69 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 136.00 |
▷ Minimum class complexity | 136.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 10.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.53MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
template/assets/images/jwext_overlay.png | 0.98KB | 0.09KB | ▼ 90.43% |
template/assets/images/loading.png | 5.41KB | 2.98KB | ▼ 44.99% |
template/assets/images/right.png | 0.30KB | 0.40KB | 0.00% |
screenshot-1.png | 531.14KB | 141.71KB | ▼ 73.32% |
template/assets/images/test.png | 1.90KB | 0.91KB | ▼ 52.24% |