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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.71ms] Passed 4 tests
This is a short check of server-side resources used by Page Comments Off Please
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 38.71 ▼2.84 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.50 ▼8.86 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 50.60 ▲4.10 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.28 ▼5.10 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.74 ▲1.98 |
Page Comments Off Please /wp-admin/options-general.php?page=page-comments-off-please | 3.25 | 31.74 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
disable_page_comments |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Page Comments Off Please: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.30 ▼1.48 | 4.16 ▲2.47 | 41.12 ▼8.42 |
Dashboard /wp-admin | 2,210 ▲19 | 5.85 ▼0.06 | 106.95 ▲5.21 | 41.48 ▼3.27 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▼0.00 | 39.74 ▲2.49 | 34.89 ▼0.60 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.61 ▲6.18 | 686.62 ▼9.17 | 58.12 ▲2.38 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.30 ▲0.10 | 97.39 ▼12.45 | 40.75 ▼5.03 |
Page Comments Off Please /wp-admin/options-general.php?page=page-comments-off-please | 709 | 1.55 | 7.13 | 20.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- disable_page_comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=page-comments-off-please
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/page-comments-off-please/includes/pcop_options.php on line 16 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/page-comments-off-please/includes/pcop_options.php(16): do_settings_fields()
#1 wp-content/plugins/page-comments-off-please/pagecommentsoffplease.php(228): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): Page_Comments_Off_Please->plugin_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/page-comments-off-please/pagecommentsoffplease.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/page-comments-off-please/includes/pcop_options.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: uncheck, page comments, checkbox, page, please...
page-comments-off-please/pagecommentsoffplease.php 85% from 13 tests
Analyzing the main PHP file in "Page Comments Off Please" version 2.0.4
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("page-comments-off-please.php" instead of "pagecommentsoffplease.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin263 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 37 | 173 | 249 |
JavaScript | 1 | 0 | 3 | 10 |
CSS | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 16 | |
▷ Static methods | 3 | 18.75% |
▷ Public methods | 16 | 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
There were not PNG files found in your plugin