Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼145.83ms] Passed 4 tests
Analyzing server-side resources used by Jotform Feedback Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.13 | 35.52 ▲15.49 |
Dashboard /wp-admin | 3.08 ▲0.02 | 38.35 ▼2.83 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 45.81 ▲3.11 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 81.38 ▼590.53 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 32.94 ▲6.93 |
Jotform Feedback Button /wp-admin/options-general.php?page=jotform-feedback | 3.01 | 29.42 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Jotform Feedback Button
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,828 ▲232 | 16.41 ▲0.88 | 18.50 ▲6.89 | 54.27 ▲4.98 |
Dashboard /wp-admin | 2,975 ▲41 | 5.89 ▼0.07 | 134.18 ▼11.37 | 107.65 ▼4.69 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 63.66 ▼2.74 | 96.42 ▲8.87 |
Add New Post /wp-admin/post-new.php | 1,675 ▲3 | 18.87 ▲0.00 | 370.01 ▼20.11 | 114.93 ▲10.96 |
Media Library /wp-admin/upload.php | 1,812 ▲8 | 5.03 ▼0.01 | 155.61 ▲17.92 | 117.92 ▼4.39 |
Jotform Feedback Button /wp-admin/options-general.php?page=jotform-feedback | 1,733 | 3.15 | 78.17 | 76.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=jotform-feedback
- > Notice in wp-content/plugins/jotform-feedback-button/jotform-wp-feedback-options.php+11
Undefined index: formID
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jotform-feedback-button/jotform-wp-feedback.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/jotform-feedback-button/jotform-wp-feedback-options.php:2
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
jotform-feedback-button/jotform-wp-feedback.php 92% from 13 tests
The main PHP file in "Jotform Feedback Button" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jotform-feedback-button.php" instead of "jotform-wp-feedback.php")
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
No dangerous file extensions were detected201 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 9 | 180 |
JavaScript | 1 | 6 | 9 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/feedback32x32.png | 2.00KB | 1.24KB | ▼ 38.00% |
images/browse-icon22x22.png | 1.66KB | 0.71KB | ▼ 57.08% |