78% visualfeedback

Code Review | VisualFeedback

WordPress plugin VisualFeedback scored78%from 54 tests.

About plugin

  • Plugin page: visualfeedback
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Nov 20, 2017
  • Latest release: Nov 20, 2017
  • Number of updates: 4
  • Update frequency: every 4.5 days
  • Top authors: conceptdelta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /584 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.51ms] Passed 4 tests

Analyzing server-side resources used by VisualFeedback
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.97 ▼6.61
Dashboard /wp-admin3.36 ▲0.0651.68 ▼0.35
Posts /wp-admin/edit.php3.47 ▲0.1249.51 ▼9.90
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.42 ▼9.18
Media Library /wp-admin/upload.php3.28 ▲0.0642.32 ▲1.50
VisualFeedback /wp-admin/options-general.php?page=visualfeedback_settings3.2532.59

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for VisualFeedback
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.35 ▲0.081.86 ▲0.1840.57 ▼3.59
Dashboard /wp-admin2,201 ▲245.62 ▲0.0492.33 ▲1.7340.00 ▼0.55
Posts /wp-admin/edit.php2,106 ▲32.01 ▲0.0439.67 ▼1.7735.32 ▼3.55
Add New Post /wp-admin/post-new.php1,531 ▼722.97 ▲4.69604.39 ▼38.6448.07 ▼21.80
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.11101.73 ▲1.2747.12 ▲4.38
VisualFeedback /wp-admin/options-general.php?page=visualfeedback_settings9242.0427.0525.12

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=visualfeedback_settings
    • > Notice in wp-content/plugins/visualfeedback/admin/class-visualfeedback-admin.php+147
    Undefined index: supplemental

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/visualfeedback/admin/partials/visualfeedback-admin-display.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The VisualFeedback plugin interface) image missing
You can look at the official readme.txt

visualfeedback/visualfeedback.php Passed 13 tests

"VisualFeedback" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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 plugin343 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11124470252
SVG10182
CSS1209

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.29
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png65.86KB25.43KB▼ 61.38%