Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼5.39ms] Passed 4 tests
Analyzing server-side resources used by WP Post Disclaimer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.96 ▼4.18 |
Dashboard /wp-admin | 3.47 ▲0.17 | 52.26 ▼2.33 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 51.15 ▲1.02 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 90.51 ▼16.07 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 40.28 ▲4.45 |
WP Post Disclaimer /wp-admin/options-general.php?page=wppd-disclaimer-settings | 3.44 | 37.63 |
Server storage [IO: ▲2.87MB] [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: 31 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wppd_plugin_version |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
wppd_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Post Disclaimer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.24 ▼0.40 | 1.68 ▼0.50 | 45.08 ▲4.08 |
Dashboard /wp-admin | 2,202 ▲22 | 5.58 ▼0.08 | 93.65 ▲0.78 | 43.28 ▼0.97 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▼0.00 | 39.60 ▼3.63 | 34.17 ▼6.07 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.37 ▲0.26 | 659.08 ▼25.89 | 54.66 ▼15.50 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.10 ▼0.10 | 102.45 ▲7.41 | 45.21 ▼0.78 |
WP Post Disclaimer /wp-admin/options-general.php?page=wppd-disclaimer-settings | 1,781 | 5.90 | 116.70 | 61.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-post-disclaimer/includes/font-awesome.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Requires php: The plugin version is formatted incorrectly
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
- Requires at least: The plugin version is formatted incorrectly
wp-post-disclaimer/wp-post-disclaimer.php Passed 13 tests
The main file in "WP Post Disclaimer" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
136 characters long description:
Add a disclaimer/terms/warnings about post/page/custom post type on top, bottom of content as well as inside post content with shortcode
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 plugin12,938 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,026 |
CSS | 4 | 1,460 | 26 | 3,126 |
PHP | 8 | 79 | 289 | 766 |
XML | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 43.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin