Benchmarks
Plugin footprint 82% 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: ▲5.84MB] [CPU: ▼113.70ms] 50% from 4 tests
A check of server-side resources used by WordPress Form Customizer | CF7 Customizer
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 5,741.03ms on /wp-admin/admin.php?page=cfc_welcome_page)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.84MB on /wp-admin/plugins.php?page=cfc-install-plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.62 ▲5.90 | 74.92 ▲53.12 |
Dashboard /wp-admin | 8.88 ▲5.83 | 67.97 ▲14.39 |
Posts /wp-admin/edit.php | 9.00 ▲5.90 | 75.05 ▲26.08 |
Add New Post /wp-admin/post-new.php | 11.23 ▲5.80 | 129.12 ▼529.23 |
Media Library /wp-admin/upload.php | 8.83 ▲5.83 | 70.97 ▲33.95 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 9.07 | 66.83 |
CF7Customizer /wp-admin/admin.php?page=cfc_welcome_page | 9.07 | 5,741.03 |
Install Plugins /wp-admin/plugins.php?page=cfc-install-plugins | 9.01 | 73.85 |
Server storage [IO: ▲6.90MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 521 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_debug_mode |
fs_api_cache |
fs_accounts |
fs_gdpr |
fs_active_plugins |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Form Customizer | CF7 Customizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,947 ▲351 | 18.04 ▲2.21 | 14.57 ▲3.74 | 47.79 ▼5.22 |
Dashboard /wp-admin | 3,092 ▲158 | 7.63 ▲1.54 | 175.60 ▲22.91 | 148.47 ▲23.33 |
Posts /wp-admin/edit.php | 2,905 ▲166 | 3.98 ▲1.30 | 101.38 ▲32.80 | 110.89 ▲14.49 |
Add New Post /wp-admin/post-new.php | 1,725 ▲42 | 24.05 ▲5.17 | 295.70 ▼90.14 | 111.64 ▼3.37 |
Media Library /wp-admin/upload.php | 1,895 ▲88 | 6.29 ▲1.26 | 141.49 ▼23.77 | 147.85 ▲25.18 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 1,567 | 3.49 | 74.94 | 105.77 |
CF7Customizer /wp-admin/admin.php?page=cfc_welcome_page | 1,403 | 3.48 | 68.61 | 128.02 |
Install Plugins /wp-admin/plugins.php?page=cfc-install-plugins | 1,634 | 3.58 | 72.17 | 115.86 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 5 options
- fs_gdpr
- fs_active_plugins
- fs_debug_mode
- fs_accounts
- fs_api_cache
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cf7-customizer/assets/admin/inc/sdk/freemius/templates/ajax-loader.php
- 92× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: cfc_sec_inputs in wp-content/plugins/cf7-customizer/assets/admin/inc/options/titan-framework-options/cfc_input_margin.php on line 18
- > PHP Notice
Undefined variable: cfc_sec_btn in wp-content/plugins/cf7-customizer/assets/admin/inc/options/titan-framework-options/cfc_btn_bg_clr.php on line 18
- > PHP Fatal error
Uncaught Error: Call to a member function createOption() on null in wp-content/plugins/cf7-customizer/assets/admin/inc/options/titan-framework-options/cfc_input_font_size.php:18
- > PHP Fatal error
require(): Failed opening required '../../../../tests/phpunit/includes/bootstrap.php' (include_path='.:/usr/share/php') in wp-content/plugins/cf7-customizer/tests/bootstrap.php on line 22
- > PHP Warning
Use of undefined constant CFC_VERSION - assumed 'CFC_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-customizer/assets/admin/inc/welcome/welcome_page.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cf7-customizer/assets/admin/inc/welcome/welcome_page.php:17
- > PHP Fatal error
Uncaught Error: Call to a member function createOption() on null in wp-content/plugins/cf7-customizer/assets/admin/inc/options/titan-framework-options/cfc_btn_txt_clr.php:18
- > PHP Notice
Undefined variable: cfc_sec_btn in wp-content/plugins/cf7-customizer/assets/admin/inc/options/titan-framework-options/cfc_btn_border.php on line 18
- > PHP Notice
Undefined variable: cfc_sec_btn in wp-content/plugins/cf7-customizer/assets/admin/inc/options/titan-framework-options/cfc_btn_border_clr.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/cf7-customizer/tests/test_wordpress_plugin_tests.php:8
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=cfc-install-plugins
- > Javascript (severe) in unknown
/wp-content/plugins/cf7-customizer/assets/admin/inc/options/titan-framework/js/min/wp-color-picker-alpha-min.js?ver=1.11 17:10 Uncaught ReferenceError: wpColorPickerL10n is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
cf7-customizer/cf7-customizer.php 92% from 13 tests
The main file in "WordPress Form Customizer | CF7 Customizer" v. 1.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)
Code Analysis 95% from 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
There were no executable files found in this plugin67,290 lines of code in 423 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 213 | 9,161 | 20,344 | 40,034 |
PO File | 36 | 7,215 | 8,935 | 17,511 |
JavaScript | 94 | 470 | 851 | 3,541 |
Sass | 35 | 491 | 77 | 3,245 |
Markdown | 8 | 458 | 0 | 1,333 |
CSS | 18 | 124 | 134 | 1,099 |
JSON | 7 | 0 | 0 | 268 |
Bourne Shell | 3 | 41 | 36 | 116 |
YAML | 5 | 17 | 22 | 91 |
XML | 4 | 2 | 2 | 52 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,360)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 40.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,360.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 134 | |
▷ Abstract classes | 2 | 1.49% |
▷ Concrete classes | 132 | 98.51% |
▷ Final classes | 0 | 0.00% |
Methods | 1,698 | |
▷ Static methods | 188 | 11.07% |
▷ Public methods | 1,163 | 68.49% |
▷ Protected methods | 228 | 13.43% |
▷ Private methods | 307 | 18.08% |
Functions | 137 | |
▷ Named functions | 137 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 140 | |
▷ Global constants | 107 | 76.43% |
▷ Class constants | 33 | 23.57% |
▷ Public constants | 33 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/inc/welcome/assets/img/logo_transparent.png | 8.58KB | 4.66KB | ▼ 45.76% |
assets/admin/inc/welcome/assets/img/1.png | 44.92KB | 15.32KB | ▼ 65.88% |
assets/admin/inc/welcome/assets/img/4.png | 47.80KB | 15.88KB | ▼ 66.78% |
assets/admin/inc/sdk/freemius/assets/img/cf7-customizer.png | 9.62KB | 4.47KB | ▼ 53.54% |
assets/admin/inc/welcome/assets/img/3.png | 48.37KB | 16.58KB | ▼ 65.73% |