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.04MB] [CPU: ▼6.81ms] Passed 4 tests
A check of server-side resources used by [凹凸曼]中文验证码
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.94 ▲1.47 |
Dashboard /wp-admin | 3.36 ▲0.01 | 46.36 ▼18.33 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.36 ▼1.27 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 95.53 ▼5.05 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.30 ▼2.60 |
settings /wp-admin/options-general.php?page=apoyl-captcha-settings | 3.26 | 32.65 |
Server storage [IO: ▲7.98MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
apoyl-captcha-settings |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for [凹凸曼]中文验证码
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲66 | 14.20 ▼0.08 | 1.98 ▲0.26 | 45.78 ▲3.05 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▲0.02 | 90.69 ▲2.80 | 39.14 ▼3.44 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.01 | 39.79 ▼2.03 | 35.36 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.01 ▼0.12 | 668.07 ▲50.26 | 67.73 ▲11.53 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.26 ▲0.03 | 95.12 ▼0.09 | 43.21 ▼1.81 |
settings /wp-admin/options-general.php?page=apoyl-captcha-settings | 841 | 2.00 | 26.39 | 26.76 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: captcha
apoyl-captcha/apoyl-captcha.php Passed 13 tests
The main PHP script in "[凹凸曼]中文验证码" version 1.2.0 is automatically included on every request by WordPress
127 characters long description:
实现网站注册用户的时候,显示弹层中文点击验证码,防止恶意注册,恶意信息发表,恶意评论.
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 plugin716 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 115 | 176 | 524 |
JavaScript | 3 | 3 | 1 | 98 |
CSS | 1 | 0 | 0 | 94 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 4 | 10.81% |
▷ Public methods | 28 | 75.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 24.32% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up 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 |
api/clicaptcha/image/refresh.png | 1.48KB | 0.45KB | ▼ 69.83% |