84% feedback-manager

Code Review | Feedback Plugin

WordPress plugin Feedback Plugin scored 84% from 54 tests.

About plugin

  • Plugin page: feedback-manager
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2015
  • Latest release: Nov 25, 2015
  • Number of updates: 8
  • Update frequency: every 3.3 days
  • Top authors: dennis19814 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,500 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼6.35ms] Passed 4 tests

Server-side resources used by Feedback Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.73 ▼4.54
Dashboard /wp-admin3.31 ▲0.0144.12 ▼6.04
Posts /wp-admin/edit.php3.36 ▲0.0148.49 ▼1.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.36 ▼13.22
Media Library /wp-admin/upload.php3.23 ▲0.0139.36 ▲5.89

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Feedback Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲20513.26 ▼1.046.05 ▲4.2044.22 ▲0.71
Dashboard /wp-admin2,230 ▲425.80 ▲0.87104.70 ▲2.4975.20 ▲29.08
Posts /wp-admin/edit.php2,109 ▲201.99 ▼0.0238.95 ▼2.0337.08 ▼0.03
Add New Post /wp-admin/post-new.php1,688 ▲15522.46 ▼0.74664.91 ▲86.6051.63 ▼3.36
Media Library /wp-admin/upload.php1,406 ▲244.15 ▼0.05100.74 ▲3.3383.38 ▲41.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/feedback-manager/getresponse.php on line 44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/feedback-manager/feedback.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Chat Widget Minimized), #2 (Live Chat Widget), #3 (Customize Chat Widget via BizChatBox Dashboard)
You can look at the official readme.txt

feedback-manager/feedback.php 92% from 13 tests

This is the main PHP file of "Feedback Plugin" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("feedback-manager.php" instead of "feedback.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected657 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP39535361
SVG100284
CSS232110
JavaScript10142

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo.png5.67KB3.04KB▼ 46.42%
images/feedback-errors-corner.png0.35KB0.30KB▼ 13.37%
images/close.png0.16KB0.15KB▼ 10.71%
images/callout.png0.28KB0.23KB▼ 16.61%
images/ok.png1.04KB0.15KB▼ 85.14%