Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.24ms] Passed 4 tests
Analyzing server-side resources used by Anti-Captcha (anti-spam botblocker)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.38 ▼6.46 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.32 ▼7.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.41 ▼1.78 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 83.70 ▼5.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.61 ▼1.72 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Anti-Captcha (anti-spam botblocker)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲68 | 13.66 ▼0.33 | 1.66 ▼0.23 | 40.32 ▼8.56 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼1.02 | 113.68 ▼9.65 | 43.43 ▼7.63 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 41.21 ▲3.19 | 37.87 ▲4.79 |
Add New Post /wp-admin/post-new.php | 1,513 ▼1 | 17.63 ▲0.13 | 691.43 ▲2.18 | 53.65 ▲1.73 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.22 ▲0.06 | 96.19 ▼7.16 | 39.94 ▼3.27 |
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
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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× PHP files output text when accessed directly:
- > /wp-content/plugins/anti-captcha/anti-captcha-0.3.js.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/anti-captcha/anti-captcha.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
anti-captcha/anti-captcha.php 92% from 13 tests
"Anti-Captcha (anti-spam botblocker)" version 20141103...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "20141103...")
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
There were no executable files found in this plugin612 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 131 | 329 | 612 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 2.28KB | 1.46KB | ▼ 36.12% |