Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/simple-spam-blocker/includes/class-spam-blocker.php+184
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.78ms] Passed 4 tests
An overview of server-side resources used by Simple Spam Blocker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.69 ▲0.86 |
Dashboard /wp-admin | 3.39 ▲0.09 | 47.72 ▼1.35 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.80 ▼2.58 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 95.23 ▼8.04 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 36.46 ▲2.95 |
Server storage [IO: ▲0.05MB] [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: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Spam Blocker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲114 | 14.85 ▲0.63 | 2.24 ▲0.43 | 47.00 ▲2.78 |
Dashboard /wp-admin | 2,222 ▲31 | 5.80 ▲0.89 | 103.86 ▼3.22 | 64.01 ▲22.05 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 1.97 ▼0.06 | 39.58 ▼2.16 | 34.46 ▼5.31 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 22.87 ▼0.32 | 718.91 ▲21.64 | 57.29 ▼5.49 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.24 ▼0.02 | 98.76 ▼12.69 | 73.83 ▲27.33 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 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 0% from 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simple-spam-blocker/public/partials/spam-blocker-public-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-spam-blocker/admin/partials/spam-blocker-admin-display.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/simple-spam-blocker/admin/partials/spam-blocker-admin-display.php:35
- > PHP Notice
Undefined variable: honeypot_options in wp-content/plugins/simple-spam-blocker/admin/partials/spam-blocker-admin-display.php on line 33
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== simple-spam-blocker ===
)
simple-spam-blocker/simple-spam-blocker.php 92% from 13 tests
The main PHP file in "Simple Spam Blocker" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin400 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 155 | 612 | 394 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 1 | 4 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin