Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼9.21ms] Passed 4 tests
Analyzing server-side resources used by Captcha Code
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.29 ▼0.75 |
Dashboard /wp-admin | 3.39 ▲0.04 | 46.40 ▼14.32 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.63 ▼2.85 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.83 ▼18.91 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.98 ▲3.12 |
Captcha Settings /wp-admin/options-general.php?page=wp_captcha_slug | 3.28 | 32.07 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
wpcaptcha_status |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Captcha Code
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.47 ▲0.11 | 1.81 ▲0.13 | 40.70 ▼4.74 |
Dashboard /wp-admin | 2,207 ▲19 | 4.85 ▼1.04 | 103.73 ▼10.68 | 39.02 ▼7.22 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.00 | 35.79 ▼1.84 | 30.92 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,517 ▼14 | 17.46 ▼5.79 | 611.71 ▼22.32 | 61.81 ▼0.23 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▼0.01 | 130.05 ▲29.93 | 46.01 ▼2.18 |
Captcha Settings /wp-admin/options-general.php?page=wp_captcha_slug | 1,016 | 2.03 | 23.19 | 27.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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- wpcaptcha_status
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/captcha-code-authentication/wpCaptcha.php:14
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png)
captcha-code-authentication/wpCaptcha.php 92% from 13 tests
The main PHP script in "Captcha Code" version 2.8 is automatically included on every request by WordPress
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 ("captcha-code-authentication.php" instead of "wpCaptcha.php")
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
Success! There were no dangerous files found in this plugin1,653 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 16 | 472 | 599 | 1,204 |
PHP | 2 | 69 | 57 | 449 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.40MB with 0.34MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 86.11KB | 7.82KB | ▼ 90.91% |
screenshot-4.png | 93.91KB | 9.04KB | ▼ 90.37% |
screenshot-2.png | 84.99KB | 7.80KB | ▼ 90.82% |
screenshot-1.png | 140.68KB | 41.59KB | ▼ 70.44% |