78% mopinion-feedback-form

Code Review | Mopinion Feedback Form

WordPress plugin Mopinion Feedback Form scored 78% from 54 tests.

About plugin

  • Plugin page: mopinion-feedback...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.6
  • WordPress version: 6.3.1
  • First release: Oct 9, 2017
  • Latest release: Dec 14, 2020
  • Number of updates: 18
  • Update frequency: every 64.6 days
  • Top authors: keeswolters (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

300+ active / 8,039 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.37 ▼6.17
Dashboard /wp-admin3.33 ▲0.0245.84 ▼1.31
Posts /wp-admin/edit.php3.44 ▲0.0845.58 ▲1.06
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.29 ▼1.98
Media Library /wp-admin/upload.php3.25 ▲0.0237.69 ▲5.89
Mopinion Feedback Form /wp-admin/options-general.php?page=mopinion-feedback-form3.2632.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.83 ▼0.541.81 ▼0.0542.57 ▼7.66
Dashboard /wp-admin2,218 ▲275.16 ▲0.11100.07 ▼4.3943.14 ▼1.74
Posts /wp-admin/edit.php2,104 ▲152.27 ▲0.2532.46 ▼0.5931.52 ▼0.58
Add New Post /wp-admin/post-new.php1,525 ▲623.53 ▲0.39621.50 ▼52.9157.54 ▼1.87
Media Library /wp-admin/upload.php1,394 ▲94.30 ▲0.0997.73 ▼0.1042.65 ▼1.63
Mopinion Feedback Form /wp-admin/options-general.php?page=mopinion-feedback-form2,9672.1734.7397.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

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 === )
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
CSS329891
PHP16267613702
JavaScript3123530

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 code0.21
Average class complexity5.44
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods57
▷ Static methods23.51%
▷ Public methods3663.16%
▷ Protected methods814.04%
▷ Private methods1322.81%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.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
FileSize - originalSize - compressedSavings
admin/assets/img/flags.png74.75KB25.52KB▼ 65.86%