84% lr-feedback

Code Review | LR Feedback

WordPress plugin LR Feedback scored84%from 54 tests.

About plugin

  • Plugin page: lr-feedback
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2018
  • Latest release: Mar 7, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: logicrays (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /552 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by LR Feedback
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.27 ▼3.02
Dashboard /wp-admin3.31 ▲0.0147.57 ▼4.39
Posts /wp-admin/edit.php3.37 ▲0.0149.34 ▲2.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.25 ▲2.73
Media Library /wp-admin/upload.php3.24 ▲0.0131.91 ▼3.40

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for LR Feedback
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.22 ▼1.452.55 ▲0.1843.35 ▼1.11
Dashboard /wp-admin2,222 ▲344.83 ▼0.04104.85 ▲1.0737.59 ▼8.03
Posts /wp-admin/edit.php2,105 ▲132.15 ▲0.1440.99 ▼1.6735.54 ▼3.02
Add New Post /wp-admin/post-new.php1,546 ▲423.56 ▲5.23615.84 ▼5.2460.58 ▲9.04
Media Library /wp-admin/upload.php1,404 ▲164.27 ▲0.07100.53 ▲4.8541.95 ▼3.71

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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)
Everything seems fine, however 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
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 plugins_url() in wp-content/plugins/lr-feedback/lr-feedback.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Stable tag: Not defined
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

lr-feedback/lr-feedback.php Passed 13 tests

The principal PHP file in "LR Feedback" v. 1.0 is loaded by WordPress automatically on each request
88 characters long description:
This is just a plugin,For giving Feedback form popup you need to put any form shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin213 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP167105
CSS11396
JavaScript113212

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions8
▷ Named functions8100.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
7 PNG files occupy 0.35MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png7.79KB3.36KB▼ 56.87%
banner-772x250.png128.25KB92.31KB▼ 28.02%
screenshot-2.png32.59KB11.83KB▼ 63.69%
screenshot-1.png21.63KB8.10KB▼ 62.54%
screenshot-3.png30.82KB12.87KB▼ 58.25%