84% feedbucket

Code Review | Feedbucket - Website Feedback Tool

WordPress plugin Feedbucket - Website Feedback Tool scored84%from 54 tests.

About plugin

  • Plugin page: feedbucket
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Aug 19, 2022
  • Latest release: Dec 1, 2023
  • Number of updates: 12
  • Update frequency: every 39.2 days
  • Top authors: feedbucket (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /1,952 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼4.58ms] Passed 4 tests

Analyzing server-side resources used by Feedbucket - Website Feedback Tool
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.50 ▼5.43
Dashboard /wp-admin3.33 ▲0.0347.29 ▼4.68
Posts /wp-admin/edit.php3.39 ▲0.0344.96 ▼3.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.83 ▲0.81
Media Library /wp-admin/upload.php3.26 ▲0.0333.48 ▼4.36
Feedbucket /wp-admin/options-general.php?page=feedbucket-plugin3.2431.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Feedbucket - Website Feedback Tool
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲7915.17 ▲0.8322.62 ▲20.8736.87 ▼7.55
Dashboard /wp-admin2,196 ▲195.62 ▲0.0588.47 ▼14.7439.11 ▼3.36
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0539.85 ▼6.6335.29 ▼2.48
Add New Post /wp-admin/post-new.php1,529 ▲323.56 ▲0.30661.80 ▲73.2857.87 ▲10.27
Media Library /wp-admin/upload.php1,407 ▲164.16 ▼0.0597.31 ▼2.0142.62 ▲0.39
Feedbucket /wp-admin/options-general.php?page=feedbucket-plugin1,0732.5549.5328.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_json_encode() in wp-content/plugins/feedbucket/templates/feedbucket-plugin-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/feedbucket/feedbucket.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
9 plugin tags: screenshot, user feedback, video recording, website feedback, feedback widget...

feedbucket/feedbucket.php Passed 13 tests

The entry point to "Feedbucket - Website Feedback Tool" version 1.0.2 is a PHP file that has certain tags in its header comment area
127 characters long description:
Enabling your clients and team members to submit feedback with screenshots and video recording directly on your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin298 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2409296
CSS1001
JavaScript1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
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 functions10100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
dist/feedbucket_logo.png4.83KB2.08KB▼ 56.90%