78% easy-feedback

Code Review | Easy Feedback

WordPress plugin Easy Feedback scored78%from 54 tests.

About plugin

  • Plugin page: easy-feedback
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Apr 17, 2018
  • Latest release: May 30, 2019
  • Number of updates: 12
  • Update frequency: every 34.1 days
  • Top authors: corypina (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /652 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Easy Feedback
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.0445.79 ▲0.05
Dashboard /wp-admin3.61 ▲0.0451.37 ▼0.61
Posts /wp-admin/edit.php3.72 ▲0.0452.17 ▼1.66
Add New Post /wp-admin/post-new.php6.19 ▲0.0490.34 ▼3.59
Media Library /wp-admin/upload.php3.53 ▲0.0438.62 ▼0.52
Easy Feedback /wp-admin/options-general.php?page=easy_feedback3.4734.57

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Easy Feedback
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14313.54 ▼1.159.04 ▲7.3544.14 ▼5.31
Dashboard /wp-admin2,193 ▲225.62 ▼0.0882.80 ▼6.3039.49 ▼2.88
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0237.06 ▼0.4235.65 ▼3.55
Add New Post /wp-admin/post-new.php1,557 ▲1718.49 ▼4.77614.43 ▼115.1552.33 ▼6.15
Media Library /wp-admin/upload.php1,398 ▼54.21 ▲0.0595.23 ▼11.8643.11 ▼2.31
Easy Feedback /wp-admin/options-general.php?page=easy_feedback8762.0123.0646.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=easy_feedback
    • > Notice in wp-content/plugins/easy-feedback/ef-settings.php+93
    Trying to access array offset on value of type bool

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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-feedback/ef-settings.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'EF_Settings' not found in wp-content/plugins/easy-feedback/ef-front-end-form.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-feedback/easy-feedback.php:10

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Requires php: Version not formatted correctly
You can look at the official readme.txt

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

The main PHP file in "Easy Feedback" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Adds a feeback form to the bottom of every page on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin267 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP36523202
CSS211142
JavaScript110223

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin