79% my-simple-feedback

Code Review | My Simple Feedback

WordPress plugin My Simple Feedback scored79%from 54 tests.

About plugin

  • Plugin page: my-simple-feedback
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2015
  • Latest release: Jan 18, 2018
  • Number of updates: 5
  • Update frequency: every 164.0 days
  • Top authors: plance (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /899 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by My Simple Feedback
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.47 ▼0.43
Dashboard /wp-admin3.32 ▲0.0145.79 ▲0.53
Posts /wp-admin/edit.php3.37 ▲0.0143.58 ▼2.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.56 ▲3.87
Media Library /wp-admin/upload.php3.24 ▲0.0136.79 ▲3.23

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
plance_simple_feedback
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by My Simple Feedback
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.07 ▼0.281.76 ▲0.1043.08 ▲1.66
Dashboard /wp-admin2,211 ▲455.58 ▼0.1484.94 ▼28.1640.06 ▼4.54
Posts /wp-admin/edit.php2,098 ▼22.01 ▼0.1133.98 ▼1.5135.97 ▲4.30
Add New Post /wp-admin/post-new.php1,545 ▲1722.05 ▼1.09750.10 ▲94.1058.22 ▲7.21
Media Library /wp-admin/upload.php1,413 ▲164.22 ▼0.00109.96 ▲11.1348.52 ▲4.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/my-simple-feedback/app/class.db.php
    • > /wp-content/plugins/my-simple-feedback/my-simple-feedback.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: Validate in wp-content/plugins/my-simple-feedback/app/view/index/form.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/my-simple-feedback/app/view/admin/form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function getData() on null in wp-content/plugins/my-simple-feedback/app/view/index/form.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: messages, form, feedback

my-simple-feedback/my-simple-feedback.php Passed 13 tests

"My Simple Feedback" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
33 characters long description:
Simple feedback form on your page

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 plugin787 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10119260704
PO File1334883

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity8.71
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods40
▷ Static methods1742.50%
▷ Public methods3690.00%
▷ Protected methods00.00%
▷ Private methods410.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin