83% flowdust

Code Review | Feedback Plugin - Flowdust

WordPress plugin Feedback Plugin - Flowdust scored83%from 54 tests.

About plugin

  • Plugin page: flowdust
  • Plugin version: 1.0.22
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2019
  • Latest release: Sep 20, 2022
  • Number of updates: 56
  • Update frequency: every 18.8 days
  • Top authors: flowdust (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /950 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.68MB] [CPU: ▼19.25ms] Passed 4 tests

Analyzing server-side resources used by Feedback Plugin - Flowdust
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.27 ▲1.66
Dashboard /wp-admin3.33 ▼0.0247.24 ▼14.20
Posts /wp-admin/edit.php3.38 ▲0.0252.11 ▲6.18
Add New Post /wp-admin/post-new.php3.16 ▼2.7333.45 ▼67.71
Media Library /wp-admin/upload.php3.25 ▲0.0237.36 ▲3.26

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Feedback Plugin - Flowdust
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲6913.18 ▼1.461.87 ▲0.1144.10 ▲0.94
Dashboard /wp-admin2,224 ▲365.84 ▲0.6795.95 ▼9.4077.17 ▲36.78
Posts /wp-admin/edit.php2,104 ▲121.99 ▼0.0434.50 ▼6.4432.96 ▼2.49
Add New Post /wp-admin/post-new.php1,681 ▲13822.52 ▲4.26675.05 ▲33.1352.36 ▼0.50
Media Library /wp-admin/upload.php1,406 ▲154.20 ▲0.0193.91 ▼3.7772.57 ▲28.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • 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
Good news, no errors were detected

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 items
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/flowdust/inc/sidebar.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/flowdust/inc/options.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/flowdust/1.0.22/inc/options.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/flowdust/1.0.22/flowdust.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/flowdust/1.0.22/inc/sidebar.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/flowdust/flowdust.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #5, #6 in flowdust/assets to your readme.txt
The official readme.txt might help

flowdust/flowdust.php 92% from 13 tests

The principal PHP file in "Feedback Plugin - Flowdust" v. 1.0.22 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin110 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP46360110

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 2.02MB with 1.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png63.39KB19.21KB▼ 69.69%
1.0.22/assets/icon.png15.24KB0.38KB▼ 97.53%
1.0.22/assets/screenshot-3.png115.77KB43.21KB▼ 62.68%
assets/icon.png15.24KB0.38KB▼ 97.53%
assets/screenshot-2.png82.91KB28.10KB▼ 66.11%