Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.86ms] Passed 4 tests
Server-side resources used by MWW Disclaimer Buttons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 33.94 ▼7.49 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.13 ▼3.73 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.88 ▲5.57 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 89.41 ▼3.53 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.77 ▼0.70 |
Disclaimer Buttons /wp-admin/options-general.php?page=mww-disclaimers | 3.22 | 28.26 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for MWW Disclaimer Buttons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲66 | 13.81 ▼0.56 | 1.88 ▼0.12 | 41.36 ▼6.49 |
Dashboard /wp-admin | 2,229 ▲38 | 5.14 ▲0.28 | 111.11 ▲3.90 | 36.53 ▼11.20 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.31 ▲0.26 | 41.16 ▼0.98 | 43.21 ▲8.81 |
Add New Post /wp-admin/post-new.php | 6,244 ▲4,711 | 26.28 ▲2.88 | 901.18 ▲210.23 | 35.89 ▼14.45 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.39 ▲0.07 | 100.52 ▼7.16 | 42.68 ▼3.22 |
Disclaimer Buttons /wp-admin/options-general.php?page=mww-disclaimers | 1,311 | 2.65 | 63.38 | 32.30 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mww-disclaimers
- > Notice in wp-content/plugins/mww-disclaimer-buttons/mww-disclaimers.php+188
Trying to access array offset on value of type bool
SRP 50% 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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mww-disclaimer-buttons/mww-disclaimers.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== mww-disclaimer-buttons ===
)
mww-disclaimer-buttons/mww-disclaimers.php 92% from 13 tests
The entry point to "MWW Disclaimer Buttons" version 3.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mww-disclaimer-buttons.php" instead of "mww-disclaimers.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin203 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 16 | 187 |
CSS | 1 | 3 | 6 | 13 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for 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 | 12 | |
▷ Named functions | 12 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected