Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.25ms] Passed 4 tests
An overview of server-side resources used by AI Ban Spam Comment
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.98 ▼2.51 |
Dashboard /wp-admin | 3.37 ▲0.06 | 49.71 ▼3.35 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.22 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.30 ▼9.57 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.23 ▼1.57 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 14 new options
New WordPress options |
---|
abscai_api_key |
abscai_top_p |
widget_theysaidso_widget |
abscai_presence_penalty |
theysaidso_admin_options |
db_upgraded |
abscai_frequency_penalty |
abscai_rejected_comment |
can_compress_scripts |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
AI Ban Spam Comment: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲61 | 14.47 ▲0.30 | 1.75 ▼0.19 | 44.06 ▼6.49 |
Dashboard /wp-admin | 2,227 ▲39 | 4.85 ▼1.04 | 101.58 ▼14.68 | 40.08 ▼3.09 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.04 ▲0.02 | 35.68 ▼3.67 | 32.96 ▼3.35 |
Add New Post /wp-admin/post-new.php | 1,529 ▼9 | 17.37 ▼5.83 | 680.41 ▲31.72 | 65.34 ▲15.12 |
Media Library /wp-admin/upload.php | 1,400 ▲18 | 4.23 ▼0.04 | 99.72 ▲0.59 | 41.47 ▼2.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: ban spam comment, openai, chatgpt, gpt
ai-ban-spam-comment/ai_bsc.php 92% from 13 tests
"AI Ban Spam Comment" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ai-ban-spam-comment.php" instead of "ai_bsc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin240 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 278 | 13 | 224 |
CSS | 2 | 2 | 0 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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
There were not PNG files found in your plugin