84% feedback-fish

Code Review | Feedback Fish

WordPress plugin Feedback Fish scored84%from 54 tests.

About plugin

  • Plugin page: feedback-fish
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 25, 2020
  • Latest release: Sep 26, 2020
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: mxstbr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /409 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Feedback Fish
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.70 ▼14.92
Dashboard /wp-admin3.32 ▲0.0154.44 ▲5.55
Posts /wp-admin/edit.php3.37 ▲0.0162.32 ▲12.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.22 ▲3.70
Media Library /wp-admin/upload.php3.24 ▲0.0137.72 ▲2.51
Feedback Fish /wp-admin/plugins.php?page=feedback_fish3.2133.02

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Feedback Fish: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.53 ▲0.261.60 ▼0.3844.02 ▲1.57
Dashboard /wp-admin2,199 ▲295.61 ▼0.0192.47 ▼16.1142.72 ▲3.86
Posts /wp-admin/edit.php2,107 ▲71.99 ▼0.0341.09 ▲3.7835.56 ▼2.47
Add New Post /wp-admin/post-new.php1,531 ▲523.22 ▲0.25683.90 ▲14.5956.97 ▲2.70
Media Library /wp-admin/upload.php1,398 ▼24.17 ▼0.02102.45 ▼12.1046.97 ▼1.04
Feedback Fish /wp-admin/plugins.php?page=feedback_fish8212.0325.7134.90

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feedback-fish/index.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
No plugin tags provided

feedback-fish/index.php 85% from 13 tests

Analyzing the main PHP file in "Feedback Fish" version 1.0
The following require your attention:
  • Description: A good plugin description is longer than 10 characters (currently 2 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("feedback-fish.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected126 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11517126

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin