73% design-feedback

Code Review | Design Feedback & Approvals

WordPress plugin Design Feedback & Approvals scored73%from 54 tests.

About plugin

  • Plugin page: design-feedback
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2015
  • Latest release: Nov 4, 2016
  • Number of updates: 49
  • Update frequency: every 10.4 days
  • Top authors: cycles (79.59%)designfeedback (22.45%)

Code review

54 tests

User reviews

6 reviews

Install metrics

90+ active /8,913 total downloads

Benchmarks

Plugin footprint 65% from 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.48MB] [CPU: ▲3.69ms] Passed 4 tests

Analyzing server-side resources used by Design Feedback & Approvals
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5049.79 ▲12.26
Dashboard /wp-admin3.83 ▲0.4964.43 ▼4.37
Posts /wp-admin/edit.php3.86 ▲0.5167.28 ▲19.57
Add New Post /wp-admin/post-new.php6.37 ▲0.4892.18 ▼3.91
Media Library /wp-admin/upload.php3.67 ▲0.4447.19 ▲10.77
Add New /wp-admin/post-new.php?post_type=designfeedback3.8158.66
Settings /wp-admin/edit.php?post_type=designfeedback&page=cycles_settings3.6751.24
All Designs /wp-admin/edit.php?post_type=designfeedback3.7849.77

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 42 new files
Database: 1 new table, 6 new options
New tables
wp_feedbacks
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Design Feedback & Approvals
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,993 ▲24715.40 ▲1.031.89 ▲0.0544.64 ▲1.69
Dashboard /wp-admin2,396 ▲2056.70 ▲1.77142.35 ▲36.6440.11 ▼0.60
Posts /wp-admin/edit.php2,307 ▲2183.63 ▲1.6658.11 ▲23.6736.07 ▲4.46
Add New Post /wp-admin/post-new.php1,564 ▲2623.27 ▲0.01651.45 ▲18.0934.57 ▼19.13
Media Library /wp-admin/upload.php1,440 ▲494.43 ▲0.2182.67 ▼20.7244.54 ▲0.66
Add New /wp-admin/post-new.php?post_type=designfeedback1,6884.1067.9134.60
Settings /wp-admin/edit.php?post_type=designfeedback&page=cycles_settings1,0423.3744.6622.80
All Designs /wp-admin/edit.php?post_type=designfeedback1,2803.6453.6272.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_feedbacks
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/design-feedback/addons/settings/index.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/design-feedback/addons/approvals/index.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/design-feedback/public/templates/single-designfeedback.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/design-feedback/addons/paidcopy/index.php:16

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
Please take inspiration from this readme.txt

design-feedback/cycles.php 85% from 13 tests

The entry point to "Design Feedback & Approvals" version 1.5.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("design-feedback.php" instead of "cycles.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected4,419 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP164136031,900
CSS5102271,125
JavaScript101581031,053
HTML3300341

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.42
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods104
▷ Static methods65.77%
▷ Public methods9894.23%
▷ Protected methods00.00%
▷ Private methods65.77%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants16.67%
▷ Class constants1493.33%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin