Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼146.54ms] Passed 4 tests
An overview of server-side resources used by Slide Captcha
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 36.95 ▼2.53 |
Dashboard /wp-admin | 3.09 ▲0.03 | 50.19 ▲2.34 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 46.84 ▲0.63 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 93.87 ▼582.30 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.69 ▼1.96 |
Captcha /wp-admin/options-general.php?page=scap_sCaptcha_menu | 3.02 | 37.48 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Slide Captcha: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲136 | 15.90 ▲0.44 | 9.27 ▲1.95 | 48.86 ▼1.79 |
Dashboard /wp-admin | 2,972 ▲38 | 5.88 ▼0.31 | 149.32 ▼8.78 | 123.18 ▲3.49 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 69.53 ▲3.05 | 83.37 ▼12.65 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.81 ▲0.79 | 381.85 ▲6.51 | 122.59 ▲5.46 |
Media Library /wp-admin/upload.php | 1,809 ▲2 | 5.01 ▼0.01 | 153.43 ▼11.82 | 137.23 ▲12.27 |
Captcha /wp-admin/options-general.php?page=scap_sCaptcha_menu | 1,372 | 3.63 | 95.57 | 74.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/slidecaptcha/slideCaptcha.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: slide captcha, slider, anti-spam, captcha, jquery...
slidecaptcha/slideCaptcha.php 85% from 13 tests
Analyzing the main PHP file in "Slide Captcha" version 1.0
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("slidecaptcha.php" instead of "slideCaptcha.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected253 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 9 | 112 |
CSS | 1 | 15 | 0 | 111 |
JavaScript | 3 | 4 | 16 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/slide-bg.png | 14.46KB | 5.79KB | ▼ 60.00% |
images/tumblr_static_bg3.png | 233.71KB | 123.17KB | ▼ 47.30% |