Benchmarks
Plugin footprint Passed 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼140.88ms] Passed 4 tests
This is a short check of server-side resources used by Block Spam Comment
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 36.63 ▲11.47 |
Dashboard /wp-admin | 3.10 ▲0.05 | 47.38 ▲0.57 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 49.75 ▲0.12 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 92.51 ▼563.01 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 32.95 ▼1.20 |
All Comments /wp-admin/edit-comments.php | 3.11 | 34.60 |
Block Spam Comment /wp-admin/edit-comments.php?page=block-spam-comment | 3.04 | 31.83 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Block Spam Comment
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲65 | 15.77 ▲0.30 | 8.41 ▲0.30 | 49.22 ▼6.75 |
Dashboard /wp-admin | 2,993 ▲59 | 6.10 ▲0.17 | 148.37 ▼17.70 | 118.74 ▼0.61 |
Posts /wp-admin/edit.php | 2,762 ▲23 | 2.68 ▼0.01 | 67.89 ▲0.86 | 102.47 ▲8.05 |
Add New Post /wp-admin/post-new.php | 1,698 ▲15 | 18.77 ▼0.17 | 387.81 ▲14.58 | 119.74 ▲5.72 |
Media Library /wp-admin/upload.php | 1,830 ▲20 | 5.04 ▲0.05 | 173.89 ▲18.93 | 132.48 ▲6.23 |
All Comments /wp-admin/edit-comments.php | 2,452 | 2.87 | 70.88 | 109.44 |
Block Spam Comment /wp-admin/edit-comments.php?page=block-spam-comment | 1,088 | 2.05 | 56.99 | 83.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/edit-comments.php?page=block-spam-comment
- > Notice in wp-content/plugins/block-spam-comment/Block-Spam-Comment.php+145
date_default_timezone_set(): Timezone ID '' is invalid
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: antispam, comments, anti-spam, comment, spam
block-spam-comment/Block-Spam-Comment.php 85% from 13 tests
Analyzing the main PHP file in "Block Spam Comment" version 1.1.0
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("block-spam-comment.php" instead of "Block-Spam-Comment.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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 plugin225 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 52 | 165 |
PO File | 1 | 16 | 16 | 60 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 8 | |
▷ Named functions | 3 | 37.50% |
▷ Anonymous functions | 5 | 62.50% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin