Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▼4.55ms] Passed 4 tests
A check of server-side resources used by WP Advanced Math Captcha
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 48.88 ▲2.49 |
Dashboard /wp-admin | 3.79 ▲0.44 | 57.51 ▼5.81 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 52.74 ▼1.79 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 87.93 ▼12.98 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 39.13 ▲2.40 |
Math Captcha /wp-admin/options-general.php?page=math-captcha | 3.60 | 38.30 |
Server storage [IO: ▲3.91MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Illegal file modification detected: 1 file (13.56KB) outside of "wp-content/plugins/wp-advanced-math-captcha/" and "wp-content/uploads/"
- (new file) siteguarding_tools.php
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Advanced Math Captcha
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.27 ▼0.11 | 1.89 ▼0.31 | 42.48 ▼0.46 |
Dashboard /wp-admin | 2,211 ▲34 | 5.60 ▼0.02 | 96.99 ▲11.44 | 43.77 ▲6.91 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.03 ▲0.03 | 38.05 ▲0.87 | 33.50 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,551 ▲17 | 23.02 ▼0.09 | 651.44 ▼15.35 | 51.39 ▲0.67 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.21 ▼0.02 | 99.81 ▼2.13 | 42.95 ▼3.98 |
Math Captcha /wp-admin/options-general.php?page=math-captcha | 2,362 | 1.72 | 23.77 | 35.65 |
Uninstaller [IO: ▲0.01MB] [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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=math-captcha
- > Notice in wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php+274
Undefined index: ip_rules
- > GET request to /wp-admin/options-general.php?page=math-captcha
- > Notice in wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php+300
Undefined index: geo_captcha_rules
- 250 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=math-captcha
- > Notice in wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php+321
Undefined index: hide_for_countries
- 250 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=math-captcha
- > Notice in wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php+321
Trying to access array offset on value of type null
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-advanced-math-captcha/includes/integrations/contact-form-7.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5 in wp-advanced-math-captcha/assets to your readme.txt
wp-advanced-math-captcha/wp-math-captcha.php 77% from 13 tests
The main PHP file in "WP Advanced Math Captcha" ver. 1.2.20 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-advanced-math-captcha.php" instead of "wp-math-captcha.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
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 detected1,999 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 438 | 351 | 1,960 |
CSS | 2 | 2 | 2 | 32 |
JavaScript | 1 | 3 | 1 | 7 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 55.17 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 176.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 1 | 1.10% |
▷ Public methods | 63 | 69.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 28 | 30.77% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banner-pentryforms.png | 50.53KB | 20.72KB | ▼ 58.99% |
images/logo-dfactory.png | 2.92KB | 1.92KB | ▼ 34.20% |