Benchmarks
Plugin footprint 83% 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.02MB] [CPU: ▼3.00ms] Passed 4 tests
An overview of server-side resources used by Google Invisible reCaptcha by ThreatPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.33 ▼7.87 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.11 ▲0.80 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.83 ▼5.37 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.79 ▲4.19 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.25 ▲0.45 |
Invisible reCAPTCHA /wp-admin/tools.php?page=threatpress_recaptcha_settings | 3.38 | 32.45 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
threatpress_recaptcha_settings |
Browser metrics Passed 4 tests
Google Invisible reCaptcha by ThreatPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.58 ▼1.06 | 1.70 ▼0.17 | 40.90 ▼5.43 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.01 | 106.77 ▼2.72 | 37.61 ▼4.43 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.98 ▼0.01 | 40.44 ▼3.23 | 36.03 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.06 ▲5.43 | 590.38 ▼92.69 | 54.98 ▼15.77 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.21 ▲0.02 | 97.36 ▲1.48 | 43.78 ▼0.24 |
Invisible reCAPTCHA /wp-admin/tools.php?page=threatpress_recaptcha_settings | 1,461 | 2.23 | 29.94 | 26.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- threatpress_recaptcha_settings
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'ThreatPress_Recaptcha_Admin_Option' not found in wp-content/plugins/invisible-recaptcha-by-threatpress/admin/options/class-form-option-settings.php:6
- > PHP Fatal error
Uncaught Error: Class 'ThreatPress_Recaptcha_Admin_Form' not found in wp-content/plugins/invisible-recaptcha-by-threatpress/admin/pages/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/invisible-recaptcha-by-threatpress/bootstrap.php:114
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: recaptcha, security, captcha, invisible recaptcha, google...
invisible-recaptcha-by-threatpress/threatpress.php 77% from 13 tests
The main file in "Google Invisible reCaptcha by ThreatPress" v. 0.9.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("invisible-recaptcha-by-threatpress.php" instead of "threatpress.php")
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
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 plugin1,746 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 370 | 780 | 1,149 |
CSS | 1 | 20 | 88 | 578 |
JavaScript | 1 | 3 | 6 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 22 | 23.16% |
▷ Public methods | 84 | 88.42% |
▷ Protected methods | 6 | 6.32% |
▷ Private methods | 5 | 5.26% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin