94% visual-feedback

Code Review | Visual Feedback

WordPress plugin Visual Feedback scored 94% from 54 tests.

About plugin

  • Plugin page: visual-feedback
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.0.3
  • WordPress version: 5.8.1
  • First release: May 17, 2018
  • Latest release: Jan 24, 2019
  • Number of updates: 39
  • Update frequency: every 6.5 days
  • Top authors: orbitalone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 667 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼146.91ms] Passed 4 tests

Analyzing server-side resources used by Visual Feedback
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0134.24 ▲0.22
Dashboard /wp-admin3.11 ▲0.0543.24 ▼8.43
Posts /wp-admin/edit.php3.16 ▲0.0534.61 ▼7.76
Add New Post /wp-admin/post-new.php5.47 ▲0.0389.35 ▼570.63
Media Library /wp-admin/upload.php3.05 ▲0.0533.97 ▼0.81

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Visual Feedback
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12716.20 ▲0.8710.22 ▲0.7146.06 ▼4.84
Dashboard /wp-admin2,993 ▲635.87 ▼0.07141.28 ▼7.07106.54 ▼8.67
Posts /wp-admin/edit.php2,759 ▲202.72 ▼0.0066.97 ▼0.1993.51 ▲8.47
Add New Post /wp-admin/post-new.php1,696 ▲1318.39 ▼0.31364.13 ▼52.74107.64 ▲1.80
Media Library /wp-admin/upload.php1,830 ▲235.02 ▲0.01166.03 ▼5.66120.17 ▼9.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-feedback/visual-feedback-main.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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: client review, client feedback, website feedback, website review, wordpress feedback...

visual-feedback/visual-feedback.php 92% from 13 tests

"Visual Feedback" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin509 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP9113133237
CSS396188
JavaScript4183584

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 4.79MB with 3.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png813.38KB213.64KB▼ 73.73%
assets/banner-772x250.png128.64KB56.67KB▼ 55.95%
public/images/banner-772x250.png128.64KB56.67KB▼ 55.95%
public/images/screenshot-3.png156.96KB46.17KB▼ 70.58%
assets/screenshot-1.png797.04KB217.24KB▼ 72.74%