88% loopfeedback

Code Review | Loop Feedback

WordPress plugin Loop Feedback scored 88% from 54 tests.

About plugin

  • Plugin page: loopfeedback
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: Jun 10, 2020
  • Latest release: Jun 19, 2020
  • Number of updates: 13
  • Update frequency: every 1.3 days
  • Top authors: miguelli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 205 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼140.20ms] Passed 4 tests

Analyzing server-side resources used by Loop Feedback
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1947.89 ▲24.75
Dashboard /wp-admin3.14 ▲0.0857.00 ▲7.00
Posts /wp-admin/edit.php3.25 ▲0.1450.20 ▼3.69
Add New Post /wp-admin/post-new.php5.49 ▲0.0693.92 ▼566.85
Media Library /wp-admin/upload.php3.08 ▲0.0835.85 ▲2.75

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Loop Feedback
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,807 ▲21116.28 ▲0.4110.53 ▲2.2950.47 ▼4.63
Dashboard /wp-admin2,992 ▲615.89 ▼0.07142.23 ▼8.21115.75 ▲2.84
Posts /wp-admin/edit.php2,758 ▲192.69 ▲0.0073.73 ▲6.1294.90 ▲0.03
Add New Post /wp-admin/post-new.php1,697 ▲1418.73 ▼0.08363.64 ▼28.22111.43 ▼8.10
Media Library /wp-admin/upload.php1,826 ▲225.01 ▼0.02149.61 ▼9.66127.39 ▼7.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/loopfeedback/public/partials/loop-feedback-public-display.php
    • > /wp-content/plugins/loopfeedback/loop-feedback/public/partials/loop-feedback-public-display.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/loopfeedback/admin/partials/loop-feedback-admin-display.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/loopfeedback/loop-feedback/admin/partials/loop-feedback-admin-display.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: feedback, website, loop, tool, have a suggestion...

loopfeedback/loop-feedback.php 77% from 13 tests

The principal PHP file in "Loop Feedback" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("loopfeedback.php" instead of "loop-feedback.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 330 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin522 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP14189656516
JavaScript24546
CSS2080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.86
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods60
▷ Static methods46.67%
▷ Public methods5083.33%
▷ Protected methods00.00%
▷ Private methods1016.67%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin