Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/jotform-integration/jotform-integration.php+108
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼58.81ms] Passed 4 tests
Server-side resources used by JotForm Integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.44 ▼33.34 |
Dashboard /wp-admin | 2.05 ▼1.30 | 7.63 ▼52.57 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.28 ▼45.46 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.22 ▼103.85 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.10 ▼31.05 |
JotForm Integration /wp-admin/options-general.php?page=jotform | 2.05 | 5.43 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_jotformwidget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by JotForm Integration
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.23 ▼1.16 | 4.72 ▲2.96 | 40.20 ▼3.18 |
Dashboard /wp-admin | 2,210 ▲22 | 5.81 ▲0.94 | 96.23 ▼6.86 | 45.72 ▼2.12 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.00 | 39.12 ▼1.44 | 33.80 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.42 ▼5.75 | 637.78 ▼39.57 | 60.64 ▼3.05 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.15 ▼0.05 | 95.23 ▼14.94 | 40.84 ▼4.64 |
JotForm Integration /wp-admin/options-general.php?page=jotform | 778 | 2.05 | 23.44 | 25.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
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/jotform-integration/jotform-integration.php+108
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_jotformwidget
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=jotform
- > Deprecated in wp-content/plugins/jotform-integration/jotform-integration.php+108
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=jotform
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in JotformWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=jotform
- > Notice in wp-content/plugins/jotform-integration/jotform-integration.php+159
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jotform-integration/trunk/jotform-integration.php:49
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jotform-integration/jotform-integration.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== jotform-integration ===
)
jotform-integration/jotform-integration.php Passed 13 tests
The primary PHP file in "JotForm Integration" version 1.1.2 is used by WordPress to initiate all plugin functionality
57 characters long description:
Integrate JotForm forms with your WordPress-powered site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin92 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 37 | 92 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.62MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 24.07KB | 8.49KB | ▼ 64.72% |
trunk/assets-wp-repo/screenshot-2.png | 13.81KB | 3.83KB | ▼ 72.28% |
trunk/assets-wp-repo/screenshot-1.png | 24.07KB | 8.49KB | ▼ 64.72% |
trunk/assets/banner-772x250.png | 94.29KB | 88.47KB | ▼ 6.17% |
trunk/assets/screenshot-2.png | 13.81KB | 3.83KB | ▼ 72.28% |