Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼7.50ms] Passed 4 tests
An overview of server-side resources used by ZT Captcha
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 38.51 ▼2.15 |
Dashboard /wp-admin | 3.58 ▲0.24 | 47.38 ▼10.69 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 47.35 ▲0.39 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 86.14 ▼17.56 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 39.48 ▲3.91 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
zt_captcha_error_message |
Browser metrics Passed 4 tests
An overview of browser requirements for ZT Captcha
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.61 ▼0.77 | 1.66 ▼0.08 | 42.53 ▼0.50 |
Dashboard /wp-admin | 2,225 ▲37 | 5.85 ▲0.95 | 105.83 ▲3.63 | 40.10 ▼6.21 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.00 ▲0.01 | 38.91 ▲0.66 | 36.00 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,546 ▲4 | 23.45 ▲5.10 | 674.86 ▲35.66 | 63.43 ▲13.94 |
Media Library /wp-admin/upload.php | 1,407 ▲28 | 4.22 ▼0.00 | 99.49 ▼0.92 | 40.77 ▼0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- zt_captcha_error_message
- zt_captcha_font_families_name
- theysaidso_admin_options
- widget_theysaidso_widget
- zt_captcha_font_families
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/zt-captcha/zt-captcha.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zt-captcha/request/CaptchaRequest.php:13
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
8 plugin tags: login, register, comment, captcha for register, captcha...
zt-captcha/zt-captcha.php 92% from 13 tests
The main file in "ZT Captcha" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 271 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,280 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 145 | 84 | 1,220 |
CSS | 3 | 8 | 0 | 50 |
JavaScript | 2 | 1 | 4 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 2 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 29 | 78.38% |
▷ Anonymous functions | 8 | 21.62% |
Constants | 6 | |
▷ Global constants | 6 | 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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/check.png | 1.73KB | 0.72KB | ▼ 58.42% |
img/left_arrow.png | 0.37KB | 0.24KB | ▼ 34.83% |
img/right_arrow.png | 0.35KB | 0.23KB | ▼ 33.88% |