Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.10ms] Passed 4 tests
A check of server-side resources used by Mopinion Feedback Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.37 ▼6.17 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.84 ▼1.31 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 45.58 ▲1.06 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 96.29 ▼1.98 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.69 ▲5.89 |
Mopinion Feedback Form /wp-admin/options-general.php?page=mopinion-feedback-form | 3.26 | 32.39 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Mopinion Feedback Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 13.83 ▼0.54 | 1.81 ▼0.05 | 42.57 ▼7.66 |
Dashboard /wp-admin | 2,218 ▲27 | 5.16 ▲0.11 | 100.07 ▼4.39 | 43.14 ▼1.74 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.27 ▲0.25 | 32.46 ▼0.59 | 31.52 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,525 ▲6 | 23.53 ▲0.39 | 621.50 ▼52.91 | 57.54 ▼1.87 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.30 ▲0.09 | 97.73 ▼0.10 | 42.65 ▼1.63 |
Mopinion Feedback Form /wp-admin/options-general.php?page=mopinion-feedback-form | 2,967 | 2.17 | 34.73 | 97.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/mopinion-feedback-form/public/partials/mopinion-feedback-form-public-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mopinion-feedback-form/admin/partials/account-created.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/mopinion-feedback-form/admin/partials/registration-header.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/mopinion-feedback-form/admin/partials/mopinion-feedback-form-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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 require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== mopinion-feedback-form ===
)
mopinion-feedback-form/mopinion-feedback-form.php Passed 13 tests
The main file in "Mopinion Feedback Form" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
129 characters long description:
The Mopinion Feedback Form plugin displays a feedback button and feedback form on your website to collect valuable user feedback.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,623 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 2 | 9 | 891 |
PHP | 16 | 267 | 613 | 702 |
JavaScript | 3 | 12 | 35 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 2 | 3.51% |
▷ Public methods | 36 | 63.16% |
▷ Protected methods | 8 | 14.04% |
▷ Private methods | 13 | 22.81% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/flags.png | 74.75KB | 25.52KB | ▼ 65.86% |