Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▲2.18ms] Passed 4 tests
Server-side resources used by Commenter Ignore Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 42.90 ▲4.66 |
Dashboard /wp-admin | 3.54 ▲0.24 | 48.99 ▼4.73 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 54.26 ▲4.46 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 100.25 ▲4.57 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 39.76 ▲4.43 |
Commenter Ignore Button /wp-admin/options-general.php?page=cks_cib | 3.43 | 35.24 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
cks_cib_options |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
cks_cib_stylesheet_options |
widget_recent-posts |
cks_cib_version |
Browser metrics Passed 4 tests
Commenter Ignore Button: 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 ▲58 | 14.79 ▲0.04 | 1.83 ▲0.12 | 51.01 ▲4.59 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼1.04 | 110.80 ▼2.00 | 41.69 ▼6.74 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.04 | 41.05 ▲0.50 | 38.14 ▼6.35 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 21.06 ▲2.61 | 718.02 ▲11.60 | 66.37 ▲5.21 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.23 ▲0.13 | 109.28 ▼7.68 | 54.09 ▲3.69 |
Commenter Ignore Button /wp-admin/options-general.php?page=cks_cib | 2,930 | 16.22 | 550.95 | 162.25 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/commenter-ignore-button/cks_commenter_ignore_button.php
- > /wp-content/plugins/commenter-ignore-button/cib-template-tags.php
- > /wp-content/plugins/commenter-ignore-button/uninstall.php
- > /wp-content/plugins/commenter-ignore-button/cib-settings.php
- > /wp-content/plugins/commenter-ignore-button/cib-button.php
- > /wp-content/plugins/commenter-ignore-button/cib-add-stylesheet.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/commenter-ignore-button/templates/comments.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: ignore commenter, community, trolls, comments, commenters...
commenter-ignore-button/cks_commenter_ignore_button.php 85% from 13 tests
The primary PHP file in "Commenter Ignore Button" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("commenter-ignore-button.php" instead of "cks_commenter_ignore_button.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
No dangerous file extensions were detected2,514 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 624 | 353 | 1,631 |
CSS | 3 | 7 | 54 | 701 |
JavaScript | 2 | 61 | 33 | 182 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 62 | |
▷ Named functions | 62 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ignore_unignore_dk.png | 1.26KB | 0.45KB | ▼ 64.40% |
images/cib_plugin_signature.png | 3.98KB | 2.77KB | ▼ 30.37% |
images/ignore_x.png | 1.69KB | 0.30KB | ▼ 82.42% |
images/reply_arrow.png | 0.44KB | 0.27KB | ▼ 38.58% |
images/cib-on-ignore-list.png | 11.72KB | 6.18KB | ▼ 47.28% |