Benchmarks
Plugin footprint 40% 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/no-captcha-in-comments/no-captcha-in-comment.php+29
Undefined variable: ncc_emailto
Server metrics [RAM: ▼1.97MB] [CPU: ▼53.77ms] Passed 4 tests
Server-side resources used by No Captcha in Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 8.74 ▼31.02 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.37 ▼56.82 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.23 ▼38.58 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.76 ▼88.67 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.14 ▼30.17 |
Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by No Captcha in Comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.28 ▼0.07 | 1.66 ▲0.02 | 43.60 ▲3.34 |
Dashboard /wp-admin | 2,211 ▲31 | 5.62 ▲0.01 | 80.16 ▼11.04 | 40.52 ▼10.55 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.03 ▼0.05 | 41.30 ▲4.11 | 36.88 ▲3.04 |
Add New Post /wp-admin/post-new.php | 1,548 ▲18 | 18.41 ▼4.62 | 614.39 ▼68.52 | 64.29 ▲5.74 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.21 ▲0.00 | 105.33 ▼6.76 | 45.05 ▼0.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/no-captcha-in-comments/no-captcha-in-comment.php+29
Undefined variable: ncc_emailto
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-captcha-in-comments/ncc-notification.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-captcha-in-comments/ncc-settings-menu.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-captcha-in-comments/ncc-notification.php:11
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Comment Form without CAPTCHA), #2 (Spam detected and blocked), #3 (Notification to user)
no-captcha-in-comments/no-captcha-in-comment.php 92% from 13 tests
The main PHP file in "No Captcha in Comments" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("no-captcha-in-comments.php" instead of "no-captcha-in-comment.php")
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 plugin277 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 47 | 24 | 234 |
JavaScript | 1 | 13 | 4 | 43 |
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.35 |
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 | 9 | |
▷ Named functions | 9 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 14.32KB | 6.95KB | ▼ 51.50% |
screenshot-3.png | 72.41KB | 29.79KB | ▼ 58.86% |
screenshot-1.png | 32.72KB | 16.25KB | ▼ 50.33% |