Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.81ms] Passed 4 tests
This is a short check of server-side resources used by Comments Disclaimer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 35.64 ▼9.49 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.80 ▼6.03 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.93 ▲0.96 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.37 ▼0.68 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.92 ▲2.64 |
Comments Disclaimer /wp-admin/edit-comments.php?page=comments-disclaimer-plugin | 3.30 | 31.07 |
All Comments /wp-admin/edit-comments.php | 3.34 | 38.93 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Comments Disclaimer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲143 | 13.94 ▼0.47 | 4.71 ▲2.68 | 39.14 ▼13.45 |
Dashboard /wp-admin | 2,223 ▲35 | 4.83 ▼0.98 | 112.57 ▼4.31 | 42.88 ▼2.39 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.05 ▲0.04 | 39.42 ▲1.46 | 35.22 ▲2.84 |
Add New Post /wp-admin/post-new.php | 6,258 ▲4,725 | 25.67 ▲2.59 | 814.99 ▲96.18 | 60.12 ▲0.35 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.19 ▼0.02 | 95.96 ▼9.16 | 41.93 ▼1.98 |
Comments Disclaimer /wp-admin/edit-comments.php?page=comments-disclaimer-plugin | 776 | 2.05 | 24.01 | 40.00 |
All Comments /wp-admin/edit-comments.php | 1,809 | 2.29 | 41.43 | 36.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at 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/comments-disclaimer/comments-disclaimer.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: disclaimer, comments, comments disclaimer
comments-disclaimer/comments-disclaimer.php Passed 13 tests
The main file in "Comments Disclaimer" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
139 characters long description:
A minimalist plugin that will add a public comments disclaimer to your site. Protect yourself from liabilities for user-generated comments.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected390 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 48 | 48 | 238 |
PHP | 1 | 53 | 27 | 143 |
CSS | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 14 | |
▷ Static methods | 14 | 100.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
No PNG images were found in this plugin