Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.53MB] [CPU: ▼275.61ms] 75% from 4 tests
A check of server-side resources used by Easy Math Captcha for CF7
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 1,847.05ms on /wp-admin/admin.php?page=cf7-easy-math-captcha)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.43 ▲4.92 | 76.40 ▲14.49 |
Dashboard /wp-admin | 8.45 ▲5.04 | 55.40 ▲24.68 |
Posts /wp-admin/edit.php | 8.45 ▲4.81 | 57.78 ▲16.58 |
Add New Post /wp-admin/post-new.php | 10.35 ▲3.35 | 111.93 ▼1,154.37 |
Media Library /wp-admin/upload.php | 8.45 ▲5.16 | 45.25 ▲20.87 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 8.45 | 46.80 |
Easy Math Captcha for CF7 /wp-admin/admin.php?page=cf7-easy-math-captcha | 8.45 | 1,847.05 |
Server storage [IO: ▲3.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 182 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_gdpr |
fs_debug_mode |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Math Captcha for CF7
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,820 ▲98 | 15.98 ▲0.20 | 5.86 ▼1.38 | 2.11 ▼0.48 |
Dashboard /wp-admin | 2,948 ▲87 | 6.13 ▼0.03 | 119.67 ▼24.00 | 171.98 ▼46.63 |
Posts /wp-admin/edit.php | 2,744 ▲53 | 3.25 ▲0.02 | 65.45 ▲2.44 | 158.46 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,703 ▲5 | 21.22 ▼0.60 | 437.95 ▼5.74 | 158.27 ▲5.27 |
Media Library /wp-admin/upload.php | 1,750 ▲52 | 5.68 ▲0.17 | 165.94 ▲24.19 | 206.22 ▲4.57 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 1,430 | 2.73 | 59.73 | 128.11 |
Easy Math Captcha for CF7 /wp-admin/admin.php?page=cf7-easy-math-captcha | 1,289 | 2.46 | 58.03 | 181.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Notice in wp-content/plugins/cf7-easy-math-captcha/freemius/includes/class-freemius.php+8218
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 4 options
- fs_debug_mode
- fs_gdpr
- fs_active_plugins
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/cf7-easy-math-captcha/freemius/templates/ajax-loader.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/cf7-easy-math-captcha/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/cf7-easy-math-captcha/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/cf7-easy-math-captcha/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/cf7-easy-math-captcha/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/cf7-easy-math-captcha/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cf7-easy-math-captcha/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cf7-easy-math-captcha/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cf7-easy-math-captcha/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
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 Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: form captcha, math captcha, contact form 7, contact form 7 captcha, captcha...
cf7-easy-math-captcha/easy-math-captcha-cf7.php 69% from 13 tests
The main PHP file in "Easy Math Captcha for CF7" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("cf7-easy-math-captcha.php" instead of "easy-math-captcha-cf7.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected45,456 lines of code in 140 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 7,124 | 15,982 | 29,789 |
PO File | 12 | 6,960 | 8,455 | 15,240 |
JavaScript | 3 | 34 | 59 | 194 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 27 |
CSS | 11 | 0 | 0 | 14 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,772)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 81.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,772.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,132 | |
▷ Static methods | 175 | 15.46% |
▷ Public methods | 791 | 69.88% |
▷ Protected methods | 15 | 1.33% |
▷ Private methods | 326 | 28.80% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 125 | |
▷ Global constants | 100 | 80.00% |
▷ Class constants | 25 | 20.00% |
▷ Public constants | 25 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |