84% feedback-pivotal

Code Review | Pivotal Feedback Form for WP

WordPress plugin Pivotal Feedback Form for WP scored84%from 54 tests.

About plugin

  • Plugin page: feedback-pivotal
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 10, 2017
  • Latest release: Apr 10, 2017
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: ifourkuldeep1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.78ms] Passed 4 tests

Server-side resources used by Pivotal Feedback Form for WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.08 ▼4.53
Dashboard /wp-admin3.32 ▲0.0243.28 ▼2.23
Posts /wp-admin/edit.php3.37 ▲0.0245.48 ▼3.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.35 ▲7.24
Media Library /wp-admin/upload.php3.25 ▲0.0235.87 ▲2.81

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Pivotal Feedback Form for WP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲19814.10 ▼0.2814.53 ▲12.7138.96 ▼3.68
Dashboard /wp-admin2,224 ▲355.90 ▲0.99107.27 ▼8.9378.90 ▲35.26
Posts /wp-admin/edit.php2,104 ▲152.02 ▼0.0439.09 ▼2.1135.49 ▲4.16
Add New Post /wp-admin/post-new.php1,532 ▼123.29 ▲0.12711.10 ▲34.5267.85 ▲7.88
Media Library /wp-admin/upload.php1,397 ▲94.27 ▲0.09107.57 ▲3.1876.33 ▲33.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/feedback-pivotal/public/partials/pivotal-feedback-form-public-display.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/feedback-pivotal/admin/partials/pivotal-feedback-form-admin-display.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: reporting, bug, pivotaltracker, feedback

feedback-pivotal/pivotal-feedback-form.php 85% from 13 tests

"Pivotal Feedback Form for WP" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("feedback-pivotal.php" instead of "pivotal-feedback-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,167 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
CSS92903882,639
SVG103540
PHP12154631520
JavaScript44153468

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.57
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods3687.80%
▷ Protected methods00.00%
▷ Private methods512.20%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/ui-icons_cc0000_256x240.png4.27KB4.11KB▼ 3.78%
admin/images/pficon.png1.24KB1.38KB0.00%
admin/images/ui-icons_999999_256x240.png4.27KB4.11KB▼ 3.78%
admin/images/ui-icons_21759b_256x240.png5.23KB4.11KB▼ 21.49%
admin/images/ui-icons_333333_256x240.png4.27KB4.11KB▼ 3.78%