Benchmarks
Plugin footprint 30% 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.03MB] [CPU: ▼9.17ms] Passed 4 tests
A check of server-side resources used by Captcha Them All
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.46 ▼2.76 |
Dashboard /wp-admin | 3.35 ▲0.01 | 45.67 ▼15.45 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 48.20 ▲1.09 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.36 ▼19.56 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.64 ▲6.13 |
Captcha Them All /wp-admin/options-general.php?page=captcha-them-all-options | 3.24 | 29.44 |
Server storage [IO: ▲9.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 301 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_CTA_ip_failed_atts |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
captcha-them-all |
CTA_DB_version |
widget_recent-comments |
Browser metrics Passed 4 tests
Captcha Them All: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.65 ▼1.00 | 4.59 ▲2.70 | 41.21 ▼1.55 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▼0.03 | 104.44 ▼12.45 | 39.69 ▼6.80 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▼0.01 | 39.60 ▲0.01 | 34.54 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,540 ▲19 | 23.35 ▲0.06 | 632.96 ▲25.53 | 50.60 ▼6.88 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.22 ▼0.01 | 95.35 ▼3.89 | 41.86 ▼3.31 |
Captcha Them All /wp-admin/options-general.php?page=captcha-them-all-options | 1,620 | 2.35 | 51.29 | 26.54 |
Uninstaller [IO: ▲9.90MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following itemsZombie tables detected upon uninstall: 1 table This plugin did not uninstall successfully, leaving 9 options in the database
- The plugin did not uninstall gracefully
- > Error in wp-content/plugins/captcha-them-all/captcha-them-all.php+67
Cannot declare class CaptchaThemAll, because the name is already in use
- The plugin did not uninstall successfully, leaving 301 files (9.90MB) in the plugin directory
- (new file) captcha-them-all.php
- (new file) class-text.php
- (new file) CaptchasDotNet.php
- (new file) securimage/.htaccess
- (new file) readme.txt
- (new file) securimage/LICENSE.txt
- (new file) securimage/AHGBold.ttf
- (new file) securimage/README.FONT.txt
- (new file) js/admin.js
- (new file) css/cta.css
- ...
- wp_CTA_ip_failed_atts
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- captcha-them-all
- widget_recent-comments
- recovery_mode_email_last_sent
- CTA_DB_version
- theysaidso_admin_options
- db_upgraded
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 everything seems fine, this is not an exhaustive test
SRP 0% 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
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/captcha-them-all/securimage/example_form.php
- > /wp-content/plugins/captcha-them-all/securimage/securimage_show.php
- > /wp-content/plugins/captcha-them-all/securimage/securimage_play.php
- > /wp-content/plugins/captcha-them-all/visualcaptcha/vendor/slim/slim/tests/templates/test.php
- > /wp-content/plugins/captcha-them-all/visualcaptcha/vendor/slim/slim/index.php
- > /wp-content/plugins/captcha-them-all/securimage/example_form.ajax.php
- 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/captcha-them-all/visualcaptcha/vendor/slim/slim/tests/Middleware/PrettyExceptionsTest.php:33
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/captcha-them-all/visualcaptcha/vendor/slim/slim/tests/Http/UtilTest.php:33
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/captcha-them-all/visualcaptcha/vendor/slim/slim/tests/Http/HeadersTest.php:33
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/captcha-them-all/visualcaptcha/vendor/slim/slim/tests/ViewTest.php:33
- > PHP Fatal error
Uncaught Error: Class 'visualCaptcha_TestCase' not found in wp-content/plugins/captcha-them-all/visualcaptcha/vendor/emotionloop/visualcaptcha/tests/unit/CustomAssetsTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'Slim\\Middleware' not found in wp-content/plugins/captcha-them-all/visualcaptcha/vendor/slim/slim/Slim/Middleware/MethodOverride.php:49
- > PHP Notice
Undefined variable: foo in wp-content/plugins/captcha-them-all/visualcaptcha/vendor/slim/slim/tests/templates/test.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/captcha-them-all/visualcaptcha/vendor/slim/slim/tests/Middleware/MethodOverrideTest.php:57
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/captcha-them-all/visualcaptcha/vendor/slim/slim/tests/Middleware/SessionCookieTest.php:33
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/captcha-them-all/visualcaptcha/vendor/emotionloop/visualcaptcha/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/captcha-them-all/visualcaptcha/vendor/emotionloop/visualcaptcha/tests/bootstrap.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
captcha-them-all/captcha-them-all.php 92% from 13 tests
The main PHP script in "Captcha Them All" version 1.4 is automatically included on every request by WordPress
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin14,348 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 65 | 2,503 | 7,374 | 12,029 |
JavaScript | 5 | 253 | 199 | 1,067 |
Markdown | 4 | 183 | 0 | 442 |
JSON | 8 | 0 | 0 | 422 |
CSS | 4 | 6 | 19 | 252 |
HTML | 2 | 26 | 29 | 82 |
XML | 2 | 2 | 0 | 30 |
YAML | 2 | 2 | 0 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 19.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 360.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 1 | 1.54% |
▷ Concrete classes | 64 | 98.46% |
▷ Final classes | 0 | 0.00% |
Methods | 941 | |
▷ Static methods | 35 | 3.72% |
▷ Public methods | 860 | 91.39% |
▷ Protected methods | 73 | 7.76% |
▷ Private methods | 8 | 0.85% |
Functions | 190 | |
▷ Named functions | 5 | 2.63% |
▷ Anonymous functions | 185 | 97.37% |
Constants | 66 | |
▷ Global constants | 2 | 3.03% |
▷ Class constants | 64 | 96.97% |
▷ Public constants | 64 | 100.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
87 PNG files occupy 0.30MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
visualcaptcha/application.png | 106.03KB | 30.48KB | ▼ 71.25% |
visualcaptcha/vendor/emotionloop/visualcaptcha/src/visualCaptcha/assets/images/pants.png | 1.06KB | 1.05KB | ▼ 0.83% |
visualcaptcha/vendor/emotionloop/visualcaptcha/src/visualCaptcha/assets/images/tag@2x.png | 2.30KB | 1.64KB | ▼ 28.44% |
visualcaptcha/vendor/emotionloop/visualcaptcha/src/visualCaptcha/assets/images/tag.png | 1.28KB | 0.98KB | ▼ 23.28% |
visualcaptcha/vendor/emotionloop/visualcaptcha/src/visualCaptcha/assets/images/light-bulb.png | 1.24KB | 1.07KB | ▼ 13.80% |