Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼15.31ms] Passed 4 tests
Analyzing server-side resources used by Customizable Captcha and Contact us
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 114.52 ▼3.54 |
Dashboard /wp-admin | 3.32 ▲0.02 | 135.18 ▲18.71 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 128.98 ▼5.40 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 222.31 ▼31.29 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 111.03 ▼21.00 |
Captcha Settings /wp-admin/options-general.php?page=cust-captcha-settings | 3.29 | 72.90 |
Contact page settings /wp-admin/options-general.php?page=cust-contact-settings | 3.24 | 73.81 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options |
---|
cust_captcha_contact_email |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
cust_captcha_status |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Customizable Captcha and Contact us
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲155 | 13.83 ▼0.69 | 38.64 ▲33.68 | 106.80 ▲0.69 |
Dashboard /wp-admin | 2,211 ▲11 | 5.85 ▲0.00 | 239.14 ▼35.77 | 105.58 ▲18.01 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 1.99 ▼0.01 | 97.35 ▼3.10 | 88.93 ▲33.63 |
Add New Post /wp-admin/post-new.php | 1,366 ▼62 | 16.54 ▼6.64 | 1,439.64 ▼255.03 | 96.60 ▼31.75 |
Media Library /wp-admin/upload.php | 1,393 ▲11 | 4.22 ▲0.03 | 221.48 ▼150.74 | 140.09 ▼32.48 |
Captcha Settings /wp-admin/options-general.php?page=cust-captcha-settings | 1,144 | 2.06 | 65.96 | 66.09 |
Contact page settings /wp-admin/options-general.php?page=cust-contact-settings | 801 | 2.01 | 76.89 | 68.68 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- cust_captcha_status
- widget_theysaidso_widget
- cust_captcha_contact_email
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/customizable-captcha-and-contact-us-form/contact-customization-options.php
- > /wp-content/plugins/customizable-captcha-and-contact-us-form/captcha-customization-options.php
- > /wp-content/plugins/customizable-captcha-and-contact-us-form/displayCaptcha.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/customizable-captcha-and-contact-us-form/custCaptchaContact.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/customizable-captcha-and-contact-us-form/cccontact_form.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: captcha, contact us, ajax
customizable-captcha-and-contact-us-form/custCaptchaContact.php 85% from 13 tests
"Customizable Captcha and Contact us" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 178 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("customizable-captcha-and-contact-us-form.php" instead of "custCaptchaContact.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,501 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 287 | 272 | 1,344 |
JavaScript | 1 | 7 | 31 | 69 |
Markdown | 1 | 20 | 0 | 66 |
CSS | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 94.00 |
▷ Minimum class complexity | 94.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 6.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 29.41% |
▷ Protected methods | 12 | 70.59% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
utils/temp.png | 8.99KB | 5.85KB | ▼ 34.88% |
utils/font-png.png | 8.99KB | 5.85KB | ▼ 34.88% |