Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼3.02ms] Passed 4 tests
This is a short check of server-side resources used by Form Generator for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 39.34 ▼1.33 |
Dashboard /wp-admin | 3.54 ▲0.23 | 49.14 ▲4.28 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 48.79 ▲2.54 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 82.24 ▼13.91 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 34.99 ▲0.61 |
All Forms /wp-admin/admin.php?page=jc-base | 3.43 | 36.39 |
Submissions /wp-admin/admin.php?page=jc-submissions | 3.62 | 34.69 |
Settings /wp-admin/admin.php?page=jc-settings-page | 3.36 | 29.84 |
Server storage [IO: ▲4.95MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 264 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Form Generator for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲177 | 13.99 ▼0.39 | 5.42 ▲3.37 | 43.00 ▲2.05 |
Dashboard /wp-admin | 2,234 ▲46 | 4.97 ▲0.14 | 114.07 ▲9.41 | 67.97 ▲23.20 |
Posts /wp-admin/edit.php | 2,133 ▲41 | 2.06 ▲0.03 | 36.19 ▼6.21 | 31.05 ▼5.20 |
Add New Post /wp-admin/post-new.php | 1,704 ▲184 | 22.40 ▼0.78 | 635.08 ▼53.20 | 31.44 ▼25.91 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.24 ▼0.01 | 99.25 ▼3.47 | 75.78 ▲30.79 |
All Forms /wp-admin/admin.php?page=jc-base | 710 | 1.54 | 6.77 | 19.20 |
Submissions /wp-admin/admin.php?page=jc-submissions | 713 | 1.54 | 7.12 | 19.41 |
Settings /wp-admin/admin.php?page=jc-settings-page | 755 | 1.54 | 7.41 | 21.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jc-settings-page
- > Warning in wp-content/plugins/form-generator-powered-by-jotform/inc/jc-settings-page.php+23
Illegal string offset 'jc_api_key'
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jc-settings-page
- > Notice in wp-content/plugins/form-generator-powered-by-jotform/inc/jc-settings-page.php+23
Uninitialized string offset: 0
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jc-submissions
- > Deprecated in wp-content/plugins/form-generator-powered-by-jotform/inc/PHPExcel/Shared/String.php+537
Array and string offset access syntax with curly braces is deprecated
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
Please fix the following
- 99× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/form-generator-powered-by-jotform/jotform-connect.php:37
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/form-generator-powered-by-jotform/inc/submissions-template.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/form-generator-powered-by-jotform/inc/PHPExcel/Style/Border.php:36
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/form-generator-powered-by-jotform/inc/dx-sample-widget.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in wp-content/plugins/form-generator-powered-by-jotform/inc/PHPExcel/Writer/Excel2007.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/form-generator-powered-by-jotform/inc/PHPExcel/Style.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/form-generator-powered-by-jotform/inc/PHPExcel/CachedObjectStorage/MemoryGZip.php:36
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/form-generator-powered-by-jotform/inc/base-template.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in wp-content/plugins/form-generator-powered-by-jotform/inc/PHPExcel/Writer/PDF/Core.php:36
- > PHP Warning
require_once(PHPEXCEL_ROOTPHPExcel/Shared/trend/bestFitClass.php): failed to open stream: No such file or directory in wp-content/plugins/form-generator-powered-by-jotform/inc/PHPExcel/Shared/trend/polynomialBestFitClass.php on line 29
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jc-settings-page
- > Javascript (severe) in unknown
/wp-content/plugins/form-generator-powered-by-jotform/js/jc-script-admin.js?ver=6.3.1 21:25 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Invalid URI ("")
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
form-generator-powered-by-jotform/jotform-connect.php 85% from 13 tests
"Form Generator for WordPress" version 1.52's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("form-generator-powered-by-jotform.php" instead of "jotform-connect.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 423 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected54,297 lines of code in 208 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 197 | 11,966 | 36,165 | 52,307 |
JavaScript | 6 | 238 | 372 | 1,723 |
CSS | 2 | 17 | 5 | 144 |
PO File | 1 | 49 | 54 | 109 |
XML | 2 | 0 | 0 | 14 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,157)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 53.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,157.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 185 | |
▷ Abstract classes | 6 | 3.24% |
▷ Concrete classes | 179 | 96.76% |
▷ Final classes | 0 | 0.00% |
Methods | 2,787 | |
▷ Static methods | 611 | 21.92% |
▷ Public methods | 2,288 | 82.10% |
▷ Protected methods | 31 | 1.11% |
▷ Private methods | 468 | 16.79% |
Functions | 50 | |
▷ Named functions | 50 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 799 | |
▷ Global constants | 126 | 15.77% |
▷ Class constants | 673 | 84.23% |
▷ Public constants | 673 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 1.13MB with 0.80MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 154.69KB | 47.66KB | ▼ 69.19% |
screenshot-4.png | 123.02KB | 42.56KB | ▼ 65.40% |
js/jotform.png | 3.46KB | 0.84KB | ▼ 75.67% |
screenshot-10.png | 71.42KB | 19.95KB | ▼ 72.06% |
screenshot-8.png | 168.20KB | 50.59KB | ▼ 69.92% |