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.02MB] [CPU: ▼4.09ms] Passed 4 tests
This is a short check of server-side resources used by Comment Section Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.02 | 43.74 ▼0.80 |
Dashboard /wp-admin | 3.37 ▲0.03 | 51.81 ▼3.90 |
Posts /wp-admin/edit.php | 3.42 ▲0.03 | 51.48 ▲2.94 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.02 | 86.09 ▼14.34 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 38.18 ▲2.70 |
Categories /wp-admin/admin.php?page=comment_remover_categories | 3.24 | 34.83 |
Pages /wp-admin/admin.php?page=comment_remover_pages | 3.26 | 33.97 |
All Pages Setting /wp-admin/admin.php?page=comment_remover_plugin | 3.24 | 31.51 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The 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_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Comment Section Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.26 ▼0.39 | 1.78 ▼0.03 | 43.08 ▲2.78 |
Dashboard /wp-admin | 2,225 ▲45 | 5.55 ▼0.10 | 85.57 ▼1.54 | 39.50 ▼4.39 |
Posts /wp-admin/edit.php | 2,136 ▲33 | 2.00 ▼0.02 | 36.37 ▼5.96 | 34.71 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,552 ▲16 | 23.15 ▲0.04 | 674.68 ▲35.53 | 49.61 ▼6.34 |
Media Library /wp-admin/upload.php | 1,433 ▲36 | 4.21 ▼0.06 | 98.47 ▼5.46 | 41.06 ▼4.60 |
Categories /wp-admin/admin.php?page=comment_remover_categories | 863 | 2.00 | 24.19 | 29.23 |
Pages /wp-admin/admin.php?page=comment_remover_pages | 866 | 2.03 | 23.06 | 28.40 |
All Pages Setting /wp-admin/admin.php?page=comment_remover_plugin | 857 | 2.03 | 27.30 | 29.59 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=comment_remover_categories
- > Notice in wp-content/plugins/comment-section-manager/comment-section-manager.php+207
Undefined offset: 1
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=comment_remover_pages
- > Notice in wp-content/plugins/comment-section-manager/comment-section-manager.php+133
Undefined offset: 2
- > GET request to /wp-admin/admin.php?page=comment_remover_plugin
- > Notice in wp-content/plugins/comment-section-manager/comment-section-manager.php+61
Undefined index: comment
- > GET request to /wp-admin/admin.php?page=comment_remover_plugin
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=comment_remover_plugin
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-section-manager/comment-section-manager.php:16
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== comment-section-manager ===
)
comment-section-manager/comment-section-manager.php Passed 13 tests
The primary PHP file in "Comment Section Manager" version 1.0 is used by WordPress to initiate all plugin functionality
82 characters long description:
This plugin will allow you to enable and disable comments from pages and category.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin206 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 8 | 200 |
CSS | 1 | 2 | 3 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 6 | |
▷ Named functions | 6 | 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