Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/ninja-spam-protection/ninja-spam-protection.php+69
Undefined variable: ninja_spam_protection_requested_uri
Server metrics [RAM: ▼1.94MB] [CPU: ▼61.01ms] Passed 4 tests
A check of server-side resources used by Ninja Spam Protection
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.78 ▼42.26 |
Dashboard /wp-admin | 2.08 ▼1.26 | 6.04 ▼60.20 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.19 ▼45.13 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.50 ▼96.44 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.31 ▼34.57 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ninja Spam Protection
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.21 ▼0.17 | 1.85 ▲0.14 | 43.78 ▼1.10 |
Dashboard /wp-admin | 2,198 ▲27 | 5.62 ▼0.05 | 97.17 ▼3.89 | 41.26 ▼4.16 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.00 | 38.03 ▲1.60 | 35.64 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.14 ▼0.08 | 685.47 ▲8.88 | 53.63 ▼5.58 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.24 ▲0.08 | 99.52 ▼24.43 | 43.63 ▼6.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/ninja-spam-protection/ninja-spam-protection.php+69
Undefined variable: ninja_spam_protection_requested_uri
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
6 plugin tags: spam, comments, gdpr, stop spam, security...
ninja-spam-protection/ninja-spam-protection.php Passed 13 tests
This is the main PHP file of "Ninja Spam Protection" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
The ultimate solution to prevent spam comments on the default commenting system for WordPress in WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected59 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 9 | 59 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 6 | |
▷ Named functions | 6 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected