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: ▼1.91MB] [CPU: ▼53.19ms] Passed 4 tests
Analyzing server-side resources used by EMC2 Popup Disclaimer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.41 ▼41.30 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.07 ▼44.11 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 8.14 ▼41.88 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.64 ▼85.46 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.55 ▼28.65 |
EMC2 Popup Disclaimer /wp-admin/options-general.php?page=emc2-popup-disclaimer/emc2pdc-admin.php | 2.10 | 6.05 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 66 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
emc2pdc_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by EMC2 Popup Disclaimer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲208 | 14.07 ▼0.33 | 14.59 ▲12.77 | 42.50 ▲0.90 |
Dashboard /wp-admin | 2,211 ▲26 | 5.84 ▼0.06 | 102.87 ▲1.94 | 41.69 ▼3.13 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.13 ▲0.16 | 36.96 ▼1.09 | 35.70 ▲5.10 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 23.13 ▲0.01 | 638.83 ▼42.75 | 65.31 ▲13.40 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.29 ▲0.06 | 98.63 ▼8.01 | 43.97 ▼3.18 |
EMC2 Popup Disclaimer /wp-admin/options-general.php?page=emc2-popup-disclaimer/emc2pdc-admin.php | 948 | 2.56 | 28.48 | 43.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the emc2pdc_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=emc2-popup-disclaimer/emc2pdc-admin.php
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the emc2pdc_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=emc2-popup-disclaimer/emc2pdc-admin.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=emc2-popup-disclaimer/emc2pdc-admin.php
- > Notice in wp-content/plugins/emc2-popup-disclaimer/emc2pdc-admin.php+96
Undefined index: emc2_hidden
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emc2-popup-disclaimer/emc2pdc-admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emc2-popup-disclaimer/emc2pdc-admin.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=emc2-popup-disclaimer/emc2pdc-admin.php
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://wordpress.org/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Dashboard view with settings.), #2 (Initial page view with popup display.)
emc2-popup-disclaimer/emc2-popup-disclaimer.php Passed 13 tests
The main PHP file in "EMC2 Popup Disclaimer" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
33 characters long description:
Adds a popup Disclaimer for users
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
There were no executable files found in this plugin1,842 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 307 | 155 | 1,081 |
CSS | 4 | 69 | 20 | 422 |
PHP | 2 | 65 | 47 | 141 |
HTML | 1 | 35 | 0 | 130 |
XML | 4 | 0 | 0 | 68 |
PHP code Passed 2 tests
A brief analysis 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.28 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.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
21 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fancybox/fancybox/fancybox-x.png | 0.20KB | 0.31KB | 0.00% |
fancybox/fancybox/fancybox-y.png | 0.17KB | 0.24KB | 0.00% |
fancybox/fancybox/fancy_shadow_sw.png | 0.33KB | 0.48KB | 0.00% |
screenshot-2.png | 55.74KB | 26.65KB | ▼ 52.19% |
fancybox/fancybox/fancy_nav_left.png | 1.41KB | 1.64KB | 0.00% |