94% floating-feedback

Code Review | Floating Feedback - Dev Peoples

WordPress plugin Floating Feedback - Dev Peoples scored 94% from 54 tests.

About plugin

  • Plugin page: floating-feedback
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.4-5.0.3
  • WordPress version: 5.8.1
  • First release: Jan 16, 2018
  • Latest release: Jan 27, 2019
  • Number of updates: 10
  • Update frequency: every 37.7 days
  • Top authors: topalidinka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,115 total downloads


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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼143.27ms] Passed 4 tests

This is a short check of server-side resources used by Floating Feedback - Dev Peoples
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1537.33 ▲13.67
Dashboard /wp-admin3.08 ▲0.0346.22 ▼5.78
Posts /wp-admin/edit.php3.17 ▲0.0652.01 ▲5.53
Add New Post /wp-admin/post-new.php5.44 ▲0.0195.65 ▼577.34
Media Library /wp-admin/upload.php3.03 ▲0.0239.20 ▲4.52
Floating Feedback /wp-admin/options-general.php?page=floating-feedback-settings-page3.0032.04

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Floating Feedback - Dev Peoples: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,993 ▲39716.64 ▲0.7312.77 ▲5.0392.11 ▲38.62
Dashboard /wp-admin2,989 ▲556.56 ▲0.40145.03 ▼14.25116.43 ▼2.48
Posts /wp-admin/edit.php2,764 ▲252.75 ▲0.0577.56 ▲9.47103.15 ▲0.31
Add New Post /wp-admin/post-new.php1,643 ▲6222.15 ▲1.77279.17 ▼119.69130.54 ▲14.80
Media Library /wp-admin/upload.php1,836 ▲265.35 ▲0.34130.17 ▼29.36122.71 ▲2.57
Floating Feedback /wp-admin/options-general.php?page=floating-feedback-settings-page1,3433.1181.7390.26

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/floating-feedback/assets/templates/template-form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/floating-feedback/init.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floating-feedback/settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: dev, peoples, floating, form, feedback

floating-feedback/init.php 92% from 13 tests

The main PHP script in "Floating Feedback - Dev Peoples" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("floating-feedback.php" instead of "init.php")

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
Success! There were no dangerous files found in this plugin335 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin