Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.36ms] Passed 4 tests
A check of server-side resources used by Machine Learning Antispam
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.12 ▼2.89 |
Dashboard /wp-admin | 3.35 ▲0.01 | 43.86 ▼16.04 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.51 ▲3.59 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.25 ▼8.31 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.62 ▼2.21 |
Machine Learning Antispam /wp-admin/options-general.php?page=machine-learning-antispam-config | 3.24 | 32.43 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Machine Learning Antispam
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.19 ▼1.20 | 4.53 ▲2.78 | 44.35 ▲1.55 |
Dashboard /wp-admin | 2,210 ▲22 | 5.79 ▼0.11 | 97.46 ▼16.36 | 38.34 ▼5.40 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.06 | 39.67 ▲3.89 | 35.19 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,537 ▲7 | 23.33 ▲5.04 | 611.96 ▲20.87 | 61.82 ▲9.63 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▲0.03 | 94.38 ▼1.67 | 42.85 ▲1.82 |
Machine Learning Antispam /wp-admin/options-general.php?page=machine-learning-antispam-config | 825 | 2.03 | 25.29 | 25.26 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
4 plugin tags: machine learning, comments, text analysis, spam
machine-learning-antispam/machine-learning-antispam.php 92% from 13 tests
Analyzing the main PHP file in "Machine Learning Antispam" version 1.0
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 199 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected246 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 81 | 141 | 246 |
PHP code Passed 2 tests
A brief analysis 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.24 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 2 | 11.76% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin