Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/contact-form-with-captcha/cfwc-main.php+552
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.89ms] Passed 4 tests
A check of server-side resources used by Contact Form With Captcha
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.69 ▼0.97 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.59 ▼5.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.41 ▼3.38 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.21 ▼14.16 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.86 ▼0.16 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Contact Form With Captcha: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.36 ▼0.36 | 1.89 ▲0.14 | 44.38 ▲1.46 |
Dashboard /wp-admin | 2,195 ▲21 | 5.57 ▼0.09 | 95.12 ▼5.80 | 45.10 ▲1.28 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.04 | 38.72 ▲1.57 | 35.30 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.77 ▲0.22 | 670.17 ▲17.92 | 57.88 ▲4.42 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▲0.00 | 96.55 ▼3.72 | 43.39 ▼2.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% 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 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
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/contact-form-with-captcha/recaptcha-master/src/ReCaptcha/RequestMethod/CurlPost.php:46
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/contact-form-with-captcha/recaptcha-master/src/ReCaptcha/RequestMethod/SocketPost.php:46
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/contact-form-with-captcha/cfwc-main.php on line 552
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/contact-form-with-captcha/recaptcha-master/src/ReCaptcha/RequestMethod/Post.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: form, recaptcha, recaptcha form, contact, antispam...
contact-form-with-captcha/cfwc-main.php 85% from 13 tests
The primary PHP file in "Contact Form With Captcha" version 1.6.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 203 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("contact-form-with-captcha.php" instead of "cfwc-main.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
Good job! No executable or dangerous file extensions detected946 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 234 | 745 | 783 |
Markdown | 1 | 33 | 0 | 109 |
JSON | 1 | 0 | 0 | 39 |
CSS | 1 | 14 | 3 | 9 |
YAML | 1 | 2 | 0 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 1 | 2.78% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.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
No PNG files were detected