Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Error in wp-content/plugins/ch-captcha/ch-captcha.php+100
Uncaught ArgumentCountError: Too few arguments to function WP_chc::plugin_path(), 0 passed in wp-content/plugins/ch-captcha/ch-captcha.php on line 36 and exactly 1 expected in wp-content/plugins/ch-captcha/ch-captcha.php:100
Stack trace:
#0 wp-content/plugins/ch-captcha/ch-captcha.php(36): WP_chc->plugin_path()
#1 wp-content/plugins/ch-captcha/ch-captcha.php(76): WP_chc->__construct()
#2 wp-content/plugins/ch-captcha/ch-captcha.php(106): WP_chc::instance()
#3 wp-content/plugins/ch-captcha/ch-captcha.php(109): WP_CHC()
#4 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#5 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.51ms] Passed 4 tests
This is a short check of server-side resources used by CH Captcha
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.32 ▲1.09 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.53 ▼3.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.34 ▲2.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.49 ▼10.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.09 ▼1.36 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CH Captcha
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.82 ▲0.46 | 1.84 ▼0.30 | 44.05 ▼1.58 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼1.08 | 100.68 ▼7.88 | 40.00 ▼5.98 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.02 | 33.05 ▼4.58 | 33.34 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.17 ▼0.23 | 677.20 ▼11.96 | 56.75 ▲2.14 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.16 ▼0.06 | 99.79 ▼16.06 | 44.71 ▼4.45 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
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)
Good news, no errors were detected
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 fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function WP_CHC() in wp-content/plugins/ch-captcha/includes/custom-captcha.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_CHC_Form_Field' not found in wp-content/plugins/ch-captcha/includes/contact-from-captcha.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== ch-captcha ===
)
ch-captcha/ch-captcha.php 85% from 13 tests
This is the main PHP file of "CH Captcha" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path folder was not found ("/i18n/")
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
No dangerous file extensions were detected735 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 174 | 35 | 735 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 48 | |
▷ Static methods | 1 | 2.08% |
▷ Public methods | 44 | 91.67% |
▷ Protected methods | 3 | 6.25% |
▷ Private methods | 1 | 2.08% |
Functions | 1 | |
▷ Named functions | 1 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin