Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/smart-recaptcha/smtcptc-contact-form-integration.php+15
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.10ms] Passed 4 tests
An overview of server-side resources used by Smart Captcha (reCAPTCHA)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.04 ▲1.39 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.02 ▲1.08 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.13 ▼5.48 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.76 ▼20.18 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.36 ▲0.20 |
Server storage [IO: ▲1.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
smt_cptch_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Captcha (reCAPTCHA)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲75 | 13.35 ▼1.27 | 1.71 ▼0.38 | 44.27 ▲4.71 |
Dashboard /wp-admin | 2,227 ▲42 | 5.90 ▲0.05 | 101.29 ▲1.53 | 39.86 ▼4.77 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.10 ▲0.10 | 35.99 ▼3.72 | 32.79 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,535 ▲5 | 23.14 ▲4.83 | 595.59 ▼23.07 | 77.01 ▲27.30 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.25 ▲0.06 | 99.29 ▲2.06 | 43.67 ▲1.68 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- 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 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smart-recaptcha/smtcptc-contact-form-integration.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-recaptcha/recaptcha.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-recaptcha/re_menu/re_functions.php:261
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Login form with Smart Captcha (reCAPTCHA).), #2 (Registration form with Smart Captcha (reCAPTCHA).), #3 (Lost password form with Smart Captcha (reCAPTCHA).), #4 (Comments form with Smart Captcha (reCAPTCHA).), #5 (Contact Form 7 with Smart Captcha (reCAPTCHA).), #6 (Smart Captcha (reCAPTCHA) Settings page.)
smart-recaptcha/recaptcha.php 85% from 13 tests
The main PHP script in "Smart Captcha (reCAPTCHA)" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smart-recaptcha.php" instead of "recaptcha.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected8,414 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 9 | 2,467 | 3,918 | 4,313 |
PHP | 7 | 5,536 | 486 | 2,077 |
CSS | 7 | 2,023 | 73 | 1,616 |
JavaScript | 5 | 182 | 72 | 336 |
SVG | 1 | 0 | 0 | 72 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 41.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 6.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 14.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 85.71% |
Functions | 83 | |
▷ Named functions | 83 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.93MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-7.png | 121.66KB | 39.31KB | ▼ 67.69% |
screenshot-6.png | 51.92KB | 22.73KB | ▼ 56.23% |
screenshot-3.png | 24.21KB | 10.56KB | ▼ 56.39% |
screenshot-5.png | 69.28KB | 31.80KB | ▼ 54.09% |
screenshot-10.png | 362.91KB | 109.36KB | ▼ 69.87% |