84% gs-feedbacking

Code Review | Feedbacking - Lets users comment your design - Experimental

WordPress plugin Feedbacking - Lets users comment your design - Experimental scored84%from 54 tests.

About plugin

  • Plugin page: gs-feedbacking
  • Plugin version: 0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Nov 15, 2021
  • Latest release: Nov 15, 2021
  • Number of updates: 2
  • Update frequency: every 6.0 days
  • Top authors: andreasnrb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /322 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.35MB] [CPU: ▲9.42ms] Passed 4 tests

Analyzing server-side resources used by Feedbacking - Lets users comment your design - Experimental
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.28102.39 ▲51.87
Dashboard /wp-admin3.67 ▲0.3365.32 ▲6.18
Posts /wp-admin/edit.php3.79 ▲0.4351.37 ▲6.18
Add New Post /wp-admin/post-new.php6.38 ▲0.50105.02 ▲21.00
Media Library /wp-admin/upload.php3.59 ▲0.3637.91 ▲4.32
Feedbacking /wp-admin/options-general.php?page=gs-feedbacking-options3.5631.85

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Feedbacking - Lets users comment your design - Experimental
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,985 ▲25014.51 ▲0.2149.56 ▲47.6572.05 ▲21.92
Dashboard /wp-admin2,229 ▲415.81 ▼0.00148.25 ▲29.4255.50 ▲12.56
Posts /wp-admin/edit.php2,124 ▲321.99 ▼0.0149.86 ▲15.9237.02 ▲1.83
Add New Post /wp-admin/post-new.php1,559 ▲4023.00 ▼0.24735.92 ▲74.2570.32 ▲19.28
Media Library /wp-admin/upload.php1,423 ▲354.20 ▼0.09102.07 ▼4.6042.01 ▼2.13
Feedbacking /wp-admin/options-general.php?page=gs-feedbacking-options8342.1729.5327.94

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • gs_sf_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'GooseStudio\\Feedbacking\\Dependencies\\SettingsBase' not found in wp-content/plugins/gs-feedbacking/src/Settings.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Posts_Controller' not found in wp-content/plugins/gs-feedbacking/src/Controllers/FeedbackController.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: feedback, comment, consulting, design

gs-feedbacking/plugin.php 85% from 13 tests

The principal PHP file in "Feedbacking - Lets users comment your design - Experimental" v. 0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/lang" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gs-feedbacking.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,435 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP122434121,429
CSS3293
JavaScript30103

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity16.10
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces4
Interfaces1
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods81
▷ Static methods1316.05%
▷ Public methods6681.48%
▷ Protected methods00.00%
▷ Private methods1518.52%
Functions11
▷ Named functions218.18%
▷ Anonymous functions981.82%
Constants12
▷ Global constants866.67%
▷ Class constants433.33%
▷ Public constants4100.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
There were not PNG files found in your plugin