Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.11ms] Passed 4 tests
Analyzing server-side resources used by cForms - Light speed fast Form Builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.88 ▼8.38 |
Dashboard /wp-admin | 3.35 ▲0.04 | 50.44 ▼1.85 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.77 ▼1.91 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.84 ▼6.97 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.91 ▼3.16 |
CForms /wp-admin/admin.php?page=cforms | 3.29 | 34.90 |
Submissions /wp-admin/admin.php?page=cforms_submissions | 3.29 | 37.33 |
Server storage [IO: ▲8.65MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 415 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_cforms_submission |
wp_cforms_email |
wp_cforms_form |
wp_cforms_template |
wp_cforms_field |
New WordPress options |
---|
widget_theysaidso_widget |
cforms_db_version |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for cForms - Light speed fast Form Builder
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 13.16 ▼1.22 | 1.78 ▼0.02 | 44.05 ▲0.59 |
Dashboard /wp-admin | 2,250 ▲47 | 5.89 ▲1.03 | 104.94 ▼9.84 | 89.91 ▲42.82 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.02 ▼0.02 | 36.89 ▼3.79 | 37.48 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,702 ▲157 | 22.68 ▼0.30 | 686.49 ▲23.51 | 61.27 ▲1.21 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.25 ▲0.05 | 98.15 ▼11.84 | 81.01 ▲33.03 |
CForms /wp-admin/admin.php?page=cforms | 922 | 2.07 | 31.36 | 33.64 |
Submissions /wp-admin/admin.php?page=cforms_submissions | 910 | 2.03 | 26.37 | 33.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 5 tables
- wp_cforms_submission
- wp_cforms_template
- wp_cforms_form
- wp_cforms_email
- wp_cforms_field
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- cforms_db_version
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 text when accessed directly:
- > /wp-content/plugins/cforms-plugin/public/partials/cforms-public-display.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CformsApi' not found in wp-content/plugins/cforms-plugin/admin/api/element.php:11
- > PHP Fatal error
Uncaught Error: Class 'CformsApi' not found in wp-content/plugins/cforms-plugin/admin/api/config.php:11
- > PHP Fatal error
Uncaught Error: Class 'CformsApi' not found in wp-content/plugins/cforms-plugin/admin/api/email.php:11
- > PHP Fatal error
Uncaught Error: Class 'CformsApi' not found in wp-content/plugins/cforms-plugin/admin/api/path.php:11
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/cforms-plugin/lib/recaptcha/ReCaptcha/RequestMethod/CurlPost.php:37
- > PHP Fatal error
require_once(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/php') in wp-content/plugins/cforms-plugin/lib/XML_Serializer/XML/Unserializer.php on line 53
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cforms-plugin/public/autoload.php:12
- > PHP Fatal error
require_once(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/php') in wp-content/plugins/cforms-plugin/lib/XML_Serializer/XML/Serializer.php on line 53
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cforms-plugin/admin/autoload.php:11
- > PHP Warning
require_once(PEAR.php): failed to open stream: No such file or directory in wp-content/plugins/cforms-plugin/lib/XML_Serializer/XML/Serializer.php on line 53
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5 in cforms-plugin/assets to your readme.txt
cforms-plugin/cforms.php 92% from 13 tests
The primary PHP file in "cForms - Light speed fast Form Builder" version 3.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cforms-plugin.php" instead of "cforms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected52,701 lines of code in 312 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 183 | 3,707 | 4,186 | 33,755 |
CSS | 25 | 346 | 80 | 7,473 |
PHP | 58 | 1,151 | 3,870 | 4,366 |
SVG | 4 | 0 | 0 | 3,153 |
HTML | 28 | 153 | 35 | 3,064 |
JSON | 12 | 64 | 0 | 742 |
INI | 1 | 16 | 12 | 146 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 10.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 42 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 200 | |
▷ Static methods | 84 | 42.00% |
▷ Public methods | 173 | 86.50% |
▷ Protected methods | 16 | 8.00% |
▷ Private methods | 11 | 5.50% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 85 | |
▷ Global constants | 76 | 89.41% |
▷ Class constants | 9 | 10.59% |
▷ Public constants | 9 | 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
5 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/elements/recaptcha.png | 13.36KB | 4.00KB | ▼ 70.08% |
admin/images/elements/field-input-file.png | 3.74KB | 2.08KB | ▼ 44.44% |
admin/images/elements/textarea.png | 8.96KB | 1.75KB | ▼ 80.48% |
admin/images/cforms-large-mid-500x500.png | 32.86KB | 10.67KB | ▼ 67.55% |
admin/images/icon_cforms.png | 1.35KB | 0.66KB | ▼ 51.01% |