Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼0.08ms] Passed 4 tests
Analyzing server-side resources used by Really Simple CAPTCHA for cformsII
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 48.79 ▲7.01 |
Dashboard /wp-admin | 3.80 ▲0.49 | 55.27 ▼1.59 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 52.05 ▼5.91 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 108.61 ▲2.13 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 41.83 ▲5.05 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.87 | 37.84 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Really Simple CAPTCHA for cformsII
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 14.35 ▼0.37 | 2.06 ▲0.27 | 45.18 ▲0.85 |
Dashboard /wp-admin | 2,229 ▲52 | 5.52 ▼0.08 | 92.03 ▼4.82 | 42.22 ▲0.83 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.05 ▼0.09 | 35.20 ▼8.00 | 40.40 ▲7.44 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.36 ▲0.24 | 692.64 ▲40.31 | 66.78 ▲10.11 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.26 ▲0.08 | 99.28 ▼8.46 | 47.06 ▼1.86 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,002 | 2.05 | 25.44 | 30.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-includes/option.php+2520
Trying to access array offset on value of type null
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% 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)
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cforms2-really-simple-captcha/cforms2_really_simple_captcha.php:308
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/cforms2-really-simple-captcha/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: protection, captcha, verification, cforms2, cformsii...
cforms2-really-simple-captcha/cforms2_really_simple_captcha.php 92% from 13 tests
The main PHP script in "Really Simple CAPTCHA for cformsII" version 1.3 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("cforms2-really-simple-captcha.php" instead of "cforms2_really_simple_captcha.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,007 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 551 | 1,676 | 1,987 |
JavaScript | 2 | 5 | 44 | 20 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 43.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 118 | |
▷ Static methods | 8 | 6.78% |
▷ Public methods | 91 | 77.12% |
▷ Protected methods | 23 | 19.49% |
▷ Private methods | 4 | 3.39% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin