Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.06ms] Passed 4 tests
A check of server-side resources used by Accept Disclaimer Overlayer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 35.32 ▼0.53 |
Dashboard /wp-admin | 3.33 ▼0.01 | 47.03 ▼14.61 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.71 ▲0.29 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.87 ▼13.37 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.65 ▲2.15 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 11 new options
New WordPress options |
---|
mind_disclaimer_sidewide |
mind_accept_text |
mind_disclaimer_text |
mind_disclaimer_show_once |
mind_disclaimer_title |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Accept Disclaimer Overlayer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲243 | 13.61 ▼0.58 | 6.59 ▲4.95 | 40.25 ▼0.84 |
Dashboard /wp-admin | 2,222 ▲30 | 4.86 ▼0.11 | 116.61 ▲8.13 | 40.25 ▼1.65 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.05 ▲0.04 | 39.60 ▲5.99 | 34.39 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,546 ▲4 | 23.43 ▲5.37 | 652.15 ▲38.72 | 57.48 ▼5.18 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.16 ▼0.04 | 109.84 ▲14.66 | 46.14 ▲3.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_theysaidso_widget
- mind_disclaimer_text
- mind_disclaimer_title
- mind_disclaimer_sidewide
- widget_recent-posts
- theysaidso_admin_options
- mind_accept_text
- can_compress_scripts
- db_upgraded
- mind_disclaimer_show_once
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/accept-disclaimer-overlayer/index.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/accept-disclaimer-overlayer/includes/view_admin.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (How it looks screenshot-1.(png|jpg|jpeg|gif)), #2 (The admin interface screenshot-2.(png|jpg|jpeg|gif))
accept-disclaimer-overlayer/index.php 92% from 13 tests
The main PHP script in "Accept Disclaimer Overlayer" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("accept-disclaimer-overlayer.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin243 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 26 | 89 | 142 |
CSS | 1 | 6 | 0 | 51 |
JavaScript | 1 | 9 | 4 | 50 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 8 | |
▷ Static methods | 7 | 87.50% |
▷ Public methods | 8 | 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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 106.88KB | 32.14KB | ▼ 69.93% |
images/transp_black_90.png | 0.16KB | 0.10KB | ▼ 40.36% |
assets/screenshot-2.png | 120.84KB | 40.25KB | ▼ 66.69% |