93% feedback-widget-by-mbedded-widgets

Code Review | Feedback Widget by mBedded Widgets

WordPress plugin Feedback Widget by mBedded Widgets scored 93% from 54 tests.

About plugin

  • Plugin page: feedback-widget-b...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.9.2
  • WordPress version: 5.9.2
  • First release: Mar 18, 2022
  • Latest release: Mar 18, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: webdevfe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 22 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼303.90ms] Passed 4 tests

This is a short check of server-side resources used by Feedback Widget by mBedded Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0457.13 ▲4.03
Dashboard /wp-admin3.42 ▲0.0236.78 ▼0.49
Posts /wp-admin/edit.php3.66 ▲0.0243.06 ▲2.95
Add New Post /wp-admin/post-new.php6.90 ▼0.0793.74 ▼1,217.74
Media Library /wp-admin/upload.php3.31 ▲0.0228.92 ▼0.31
Feedback Plugin Form /wp-admin/options-general.php?page=feedbackMWPlugin3.2825.57

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Feedback Widget by mBedded Widgets: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲4616.02 ▲0.478.76 ▲2.273.48 ▲0.80
Dashboard /wp-admin2,883 ▲256.08 ▼0.03115.73 ▼21.10158.63 ▼4.51
Posts /wp-admin/edit.php2,693 ▲23.24 ▲0.0169.82 ▲1.62149.31 ▲4.05
Add New Post /wp-admin/post-new.php1,693 ▼6721.22 ▼1.01451.19 ▲22.84154.69 ▼5.73
Media Library /wp-admin/upload.php1,703 ▲25.44 ▼0.06143.92 ▼3.85189.60 ▼7.60
Feedback Plugin Form /wp-admin/options-general.php?page=feedbackMWPlugin1,0152.3653.11118.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feedback-widget-by-mbedded-widgets/feedback-plugin.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: feedback, analytics, widget

feedback-widget-by-mbedded-widgets/feedback-plugin.php 77% from 13 tests

The main PHP file in "Feedback Widget by mBedded Widgets" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("feedback-widget-by-mbedded-widgets.php" instead of "feedback-plugin.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191542

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 code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected