79% enquir3-feedback

Code Review | Enquir3 Feedback

WordPress plugin Enquir3 Feedback scored79%from 54 tests.

About plugin

  • Plugin page: enquir3-feedback
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 5, 2020
  • Latest release: Nov 17, 2022
  • Number of updates: 52
  • Update frequency: every 17.2 days
  • Top authors: enquir3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,747 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.71ms] Passed 4 tests

Analyzing server-side resources used by Enquir3 Feedback
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.30 ▲0.75
Dashboard /wp-admin3.31 ▲0.0146.83 ▼0.33
Posts /wp-admin/edit.php3.36 ▲0.0145.84 ▼0.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.02 ▼9.26
Media Library /wp-admin/upload.php3.24 ▲0.0133.40 ▼0.64

Server storage [IO: ▲4.94MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 298 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
enquir3_feedback_options_new
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Enquir3 Feedback
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.16 ▼1.194.84 ▲3.0742.18 ▼1.56
Dashboard /wp-admin2,203 ▲155.83 ▲0.9398.64 ▼9.0737.68 ▼3.01
Posts /wp-admin/edit.php2,089 ▼02.12 ▲0.1135.98 ▼0.3734.52 ▲2.34
Add New Post /wp-admin/post-new.php1,542 ▲1323.28 ▲0.19671.56 ▼11.6761.51 ▲5.84
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.1195.69 ▼17.2242.74 ▼5.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • enquir3_feedback_options_new

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 14× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/enquir3-feedback/views/remsto-notification-feedback-html-mail.tpl.php
    • > /wp-content/plugins/enquir3-feedback/includes/views/feedback-tpp-entry.tpl.php
    • > /wp-content/plugins/enquir3-feedback/widgets/views/remsto-client-feedback-performance-bar.tpl.php
    • > /wp-content/plugins/enquir3-feedback/views/feedback-video-testimonial.tpl.php
    • > /wp-content/plugins/enquir3-feedback/views/feedback-form-moderation.tpl.php
    • > /wp-content/plugins/enquir3-feedback/includes/views/feedback-mid-copy.tpl.php
    • > /wp-content/plugins/enquir3-feedback/widgets/views/feedback-widget-summary.tpl.php
    • > /wp-content/plugins/enquir3-feedback/views/feedback-confirmation-form.tpl.php
    • > /wp-content/plugins/enquir3-feedback/views/feedback-form-optional.tpl.php
    • > /wp-content/plugins/enquir3-feedback/views/remsto-feedback-form.tpl.php
  • 240× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: vars in wp-content/plugins/enquir3-feedback/views/remsto-feedback-form-new.tpl.php on line 836
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/enquir3-feedback/views/remsto-notification-feedback-html-mail.tpl.php on line 104
    • > PHP Notice
      Undefined index: options in wp-content/plugins/enquir3-feedback/views/remsto-notification-feedback-html-mail.tpl.php on line 223
    • > PHP Notice
      Undefined index: options in wp-content/plugins/enquir3-feedback/views/remsto-notification-feedback-html-mail.tpl.php on line 74
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/enquir3-feedback/views/remsto-feedback-form-new.tpl.php on line 818
    • > PHP Notice
      Undefined index: options in wp-content/plugins/enquir3-feedback/views/remsto-notification-feedback-html-mail.tpl.php on line 79
    • > PHP Notice
      Undefined index: options in wp-content/plugins/enquir3-feedback/views/remsto-notification-feedback-html-mail.tpl.php on line 99
    • > PHP Notice
      Undefined variable: vars in wp-content/plugins/enquir3-feedback/views/remsto-feedback-form-new.tpl.php on line 864
    • > PHP Notice
      Undefined index: options in wp-content/plugins/enquir3-feedback/views/remsto-notification-feedback-html-mail.tpl.php on line 103
    • > PHP Notice
      Undefined index: options in wp-content/plugins/enquir3-feedback/views/remsto-notification-feedback-html-mail.tpl.php on line 134

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: feedback, testimonial

enquir3-feedback/enquir3-feedback.php Passed 13 tests

Analyzing the main PHP file in "Enquir3 Feedback" version 1.0.11
37 characters long description:
Display Enquir3 Feedback Information.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected98,953 lines of code in 236 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1522,21851388,485
PHP309271,0727,411
CSS202781271,235
Pascal93411,173730
Twig1810413705
SVG300200
JSON300115
Markdown127072

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity33.00
▷ Minimum class complexity2.00
▷ Maximum class complexity224.00
Average method complexity4.46
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods111
▷ Static methods98.11%
▷ Public methods8980.18%
▷ Protected methods00.00%
▷ Private methods2219.82%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
23 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/info.png4.28KB0.83KB▼ 80.50%
css/images/ui-bg_flat_10_000000_40x100.png0.20KB0.08KB▼ 57.56%
css/images/ui-icons_228ef1_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.32KB0.18KB▼ 42.38%
css/images/ui-bg_glass_100_fdf5ce_1x400.png0.34KB0.16KB▼ 54.02%