Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/vaptcha-sms/VaptchaSmsPlugin.php+24
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.38MB] [CPU: ▼159.75ms] Passed 4 tests
Server-side resources used by vaptcha-sms 手机登录注册
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▲0.24 | 45.78 ▲10.73 |
Dashboard /wp-admin | 3.38 ▲0.32 | 39.45 ▼7.04 |
Posts /wp-admin/edit.php | 3.42 ▲0.31 | 45.52 ▼1.57 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.29 | 27.69 ▼629.10 |
Media Library /wp-admin/upload.php | 3.25 ▲0.24 | 37.79 ▼1.30 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 1 new option
New WordPress options |
---|
vaptcha_options |
Browser metrics Passed 4 tests
vaptcha-sms 手机登录注册: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,739 ▲143 | 15.83 ▲0.33 | 9.52 ▲0.68 | 53.00 ▲0.28 |
Dashboard /wp-admin | 2,997 ▲60 | 6.42 ▲0.52 | 142.83 ▼9.85 | 119.58 ▲1.14 |
Posts /wp-admin/edit.php | 2,769 ▲30 | 2.73 ▲0.04 | 70.61 ▲0.59 | 93.15 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,703 ▲20 | 17.07 ▼1.78 | 370.09 ▼20.13 | 111.51 ▼7.32 |
Media Library /wp-admin/upload.php | 1,837 ▲30 | 5.32 ▲0.32 | 154.47 ▼15.67 | 128.78 ▲9.56 |
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 did not uninstall successfully, leaving 1 option in the database
- vaptcha_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/vaptcha-sms/VaptchaSmsPlugin.php
- > /wp-content/plugins/vaptcha-sms/options.php
- > /wp-content/plugins/vaptcha-sms/lib/VaptchaSms.class.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/vaptcha-sms/vaptcha-sms.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 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: sms
vaptcha-sms/vaptcha-sms.php 92% from 13 tests
The main PHP file in "vaptcha-sms 手机登录注册" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,865 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 112 | 224 | 1,214 |
JavaScript | 2 | 26 | 25 | 351 |
CSS | 1 | 36 | 41 | 212 |
PO File | 1 | 34 | 61 | 88 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 40.50 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 5 | 8.93% |
▷ Public methods | 43 | 76.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 23.21% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/dropdown.png | 41.19KB | 0.29KB | ▼ 99.30% |
images/vaptcha-logo.png | 2.20KB | 1.49KB | ▼ 32.25% |