Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▼2.27ms] Passed 4 tests
A check of server-side resources used by Analytical Spam Filter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 38.54 ▼2.64 |
Dashboard /wp-admin | 3.75 ▲0.40 | 49.63 ▼10.16 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 48.03 ▲0.73 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 99.00 ▲2.99 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 38.20 ▲6.63 |
Analytical Spam Filter /wp-admin/options-general.php?page=analytical-spam-filter-settings | 3.58 | 34.52 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_analytical_spam_filter_content_history |
wp_analytical_spam_filter_submitter_history |
New WordPress options |
---|
analytical_spam_filter_database_version |
can_compress_scripts |
analytical_spam_filter_salt |
widget_recent-comments |
analytical_spam_filter_duration_field_id |
analytical_spam_filter_honeypot_field_id |
theysaidso_admin_options |
widget_theysaidso_widget |
analytical_spam_filter_hash_field_id |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Analytical Spam Filter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.72 ▲0.38 | 1.73 ▲0.15 | 43.86 ▼1.10 |
Dashboard /wp-admin | 2,199 ▲25 | 5.60 ▼0.05 | 94.96 ▼1.59 | 41.89 ▼3.96 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▲0.05 | 38.77 ▼3.62 | 36.84 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.45 ▲0.52 | 657.18 ▲20.60 | 53.07 ▼1.69 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.18 ▲0.04 | 96.93 ▼1.51 | 41.36 ▼2.89 |
Analytical Spam Filter /wp-admin/options-general.php?page=analytical-spam-filter-settings | 1,134 | 2.00 | 23.81 | 34.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output 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
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: protection, anti-spam, comment spam, spam, spam blocker...
analytical-spam-filter/analytical-spam-filter.php 92% from 13 tests
The principal PHP file in "Analytical Spam Filter" v. 1.0.13 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,386 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 295 | 59 | 1,366 |
JavaScript | 1 | 4 | 0 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 167.50 |
▷ Minimum class complexity | 119.00 |
▷ Maximum class complexity | 216.00 |
Average method complexity | 4.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.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 | 89 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 64.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 32 | 35.96% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin