Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.59MB] [CPU: ▼35.20ms] Passed 4 tests
Analyzing server-side resources used by Disclaimer Popup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.35 ▼0.11 | 19.80 ▼19.90 |
Dashboard /wp-admin | 3.43 ▲0.13 | 23.31 ▼28.01 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 21.47 ▼23.02 |
Add New Post /wp-admin/post-new.php | 3.43 ▼2.45 | 20.57 ▼69.88 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 22.97 ▼9.43 |
Settings /wp-admin/edit.php?post_type=wp-disclaimer-popup&page=wpdp | 3.44 | 21.49 |
Dashboard /wp-admin/plugins.php?page=meta-box | 3.53 | 22.44 |
Add New Disclaimer /wp-admin/post-new.php?post_type=wp-disclaimer-popup | 3.44 | 31.31 |
All Disclaimers /wp-admin/edit.php?post_type=wp-disclaimer-popup | 3.44 | 25.63 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 345 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Disclaimer Popup: 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,968 ▲181 | 13.41 ▼0.93 | 9.44 ▲7.49 | 42.62 ▲0.26 |
Dashboard /wp-admin | 2,278 ▲100 | 5.62 ▼0.09 | 94.70 ▼17.90 | 37.98 ▼6.34 |
Posts /wp-admin/edit.php | 2,184 ▲84 | 1.98 ▼0.05 | 35.49 ▼6.86 | 30.64 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,631 ▲105 | 22.35 ▼0.90 | 763.98 ▲97.22 | 38.20 ▼17.43 |
Media Library /wp-admin/upload.php | 1,517 ▲114 | 4.63 ▲0.43 | 106.39 ▲7.87 | 44.96 ▲1.76 |
Settings /wp-admin/edit.php?post_type=wp-disclaimer-popup&page=wpdp | 2,180 | 3.85 | 107.95 | 38.04 |
Dashboard /wp-admin/plugins.php?page=meta-box | 1,820 | 9.00 | 288.45 | 62.77 |
Add New Disclaimer /wp-admin/post-new.php?post_type=wp-disclaimer-popup | 6,181 | 21.31 | 814.82 | 27.47 |
All Disclaimers /wp-admin/edit.php?post_type=wp-disclaimer-popup | 1,144 | 1.95 | 33.75 | 29.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/disclaimer-popup/mb-settings.php+220
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 13 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wp-disclaimer-popup
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/disclaimer-popup/mb-settings.php+220
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/disclaimer-popup/public/partials/wp-disclaimer-popup-public-display.php
- > /wp-content/plugins/disclaimer-popup/assets/meta-box/inc/templates/image-advanced.php
- > /wp-content/plugins/disclaimer-popup/admin/partials/wp-disclaimer-popup-admin-display.php
- > /wp-content/plugins/disclaimer-popup/assets/meta-box/inc/templates/audio.php
- > /wp-content/plugins/disclaimer-popup/assets/meta-box/inc/templates/video.php
- > /wp-content/plugins/disclaimer-popup/assets/meta-box/inc/templates/upload.php
- > /wp-content/plugins/disclaimer-popup/assets/meta-box/inc/templates/media.php
- 78× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Select_Advanced_Field' not found in wp-content/plugins/disclaimer-popup/assets/meta-box/inc/fields/select-tree.php:5
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Image_Advanced_Field' not found in wp-content/plugins/disclaimer-popup/assets/meta-box/inc/fields/image-upload.php:5
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/disclaimer-popup/assets/meta-box/inc/fields/fieldset-text.php:5
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/disclaimer-popup/assets/meta-box/inc/fields/choice.php:5
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/disclaimer-popup/assets/meta-box/inc/fields/textarea.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/disclaimer-popup/assets/meta-box/inc/about/sections/welcome.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/disclaimer-popup/assets/meta-box/inc/about/sections/tabs.php:2
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Select_Field' not found in wp-content/plugins/disclaimer-popup/assets/meta-box/inc/fields/select-advanced.php:5
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/disclaimer-popup/assets/meta-box/inc/fields/datetime.php:7
- > PHP Fatal error
Uncaught Error: Class 'RW_Meta_Box' not found in wp-content/plugins/disclaimer-popup/assets/mb-settings-page/src/Customizer/NormalSection.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
disclaimer-popup/wp-disclaimer-popup.php 77% from 13 tests
The main PHP script in "Disclaimer Popup" version 1.1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 243 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("disclaimer-popup.php" instead of "wp-disclaimer-popup.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin16,016 lines of code in 313 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 155 | 1,744 | 4,113 | 8,383 |
JavaScript | 106 | 1,116 | 793 | 4,403 |
CSS | 47 | 248 | 141 | 3,020 |
Sass | 1 | 15 | 9 | 145 |
PO File | 2 | 10 | 17 | 55 |
JSON | 1 | 0 | 0 | 5 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 117 | |
▷ Abstract classes | 6 | 5.13% |
▷ Concrete classes | 111 | 94.87% |
▷ Final classes | 0 | 0.00% |
Methods | 627 | |
▷ Static methods | 321 | 51.20% |
▷ Public methods | 534 | 85.17% |
▷ Protected methods | 46 | 7.34% |
▷ Private methods | 47 | 7.50% |
Functions | 35 | |
▷ Named functions | 22 | 62.86% |
▷ Anonymous functions | 13 | 37.14% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.50MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/meta-box/img/jqueryui/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
assets/meta-box/img/jqueryui/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
screenshot-1.png | 55.04KB | 14.85KB | ▼ 73.02% |
assets/meta-box/img/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
assets/meta-box/img/jqueryui/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |