Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.61MB] [CPU: ▼4.01ms] Passed 4 tests
An overview of server-side resources used by cformsII
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 41.86 ▼3.90 |
Dashboard /wp-admin | 3.95 ▲0.65 | 47.48 ▼5.08 |
Posts /wp-admin/edit.php | 4.00 ▲0.65 | 50.02 ▲0.55 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 104.34 ▼7.60 |
Media Library /wp-admin/upload.php | 3.81 ▲0.59 | 44.19 ▲7.18 |
Help! /wp-admin/admin.php?page=cforms2/cforms-help.php | 4.11 | 38.66 |
Global Settings /wp-admin/admin.php?page=cforms2/cforms-global-settings.php | 3.89 | 35.48 |
Form Settings /wp-admin/admin.php?page=cforms2/cforms-options.php | 4.27 | 37.21 |
Server storage [IO: ▲0.65MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
widget_cforms |
cforms_settings |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for cformsII
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲208 | 13.96 ▼0.46 | 5.71 ▲3.81 | 38.41 ▼10.35 |
Dashboard /wp-admin | 2,235 ▲47 | 4.87 ▲0.03 | 99.00 ▼17.04 | 81.14 ▲34.36 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 1.99 ▲0.02 | 34.94 ▼1.69 | 32.28 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.51 ▲0.36 | 772.09 ▲102.97 | 55.41 ▲2.70 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.17 ▼0.01 | 92.07 ▼17.53 | 82.39 ▲38.04 |
Help! /wp-admin/admin.php?page=cforms2/cforms-help.php | 2,850 | 2.19 | 41.16 | 124.07 |
Global Settings /wp-admin/admin.php?page=cforms2/cforms-global-settings.php | 1,385 | 2.27 | 52.01 | 40.25 |
Form Settings /wp-admin/admin.php?page=cforms2/cforms-options.php | 2,964 | 2.46 | 46.07 | 59.16 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_cforms
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Cforms2\\Fieldtypes\\Fieldtype' not found in wp-content/plugins/cforms2/Fieldtypes/MultiId.php:20
- > PHP Fatal error
Uncaught Error: Class 'Cforms2\\Fieldtypes\\MultiId' not found in wp-content/plugins/cforms2/Fieldtypes/SelectBox.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function cforms2_check_access_priv() in wp-content/plugins/cforms2/cforms-corrupted.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cforms2/Widget.php:21
- > PHP Fatal error
Uncaught Error: Class 'Cforms2\\Fieldtypes\\MultiId' not found in wp-content/plugins/cforms2/Fieldtypes/CheckBox.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cforms2/cforms-global-settings.php:20
- > PHP Fatal error
Uncaught Error: Class 'Cforms2\\Fieldtypes\\Fieldtype' not found in wp-content/plugins/cforms2/Fieldtypes/FieldsetStart.php:20
- > PHP Fatal error
Uncaught Error: Class 'Cforms2\\Fieldtypes\\MultiId' not found in wp-content/plugins/cforms2/Fieldtypes/CheckBoxGroup.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cforms2/cforms-options.php:20
- > PHP Fatal error
Uncaught Error: Class 'Cforms2\\Fieldtypes\\Fieldtype' not found in wp-content/plugins/cforms2/Fieldtypes/TextOnly.php:21
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: post, contact form, multi step, api exposed, form...
cforms2/cforms.php 85% from 13 tests
"cformsII" version 15.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 153 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("cforms2.php" instead of "cforms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected10,492 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 21 | 1,035 | 790 | 5,147 |
PHP | 29 | 1,176 | 875 | 4,501 |
JavaScript | 3 | 211 | 87 | 844 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 4.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 1 | 7.69% |
Methods | 100 | |
▷ Static methods | 16 | 16.00% |
▷ Public methods | 62 | 62.00% |
▷ Protected methods | 22 | 22.00% |
▷ Private methods | 16 | 16.00% |
Functions | 56 | |
▷ Named functions | 53 | 94.64% |
▷ Anonymous functions | 3 | 5.36% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/example-multi.png | 4.68KB | 2.60KB | ▼ 44.37% |
styling/fancy_white_inp_bg.png | 0.77KB | 0.75KB | ▼ 3.42% |
images/cformsicon.png | 1.63KB | 0.80KB | ▼ 50.93% |
styling/fancy_white_submit.png | 0.52KB | 0.51KB | ▼ 2.62% |
images/example-grp.png | 3.83KB | 2.72KB | ▼ 29.00% |