10% post-feedback

Code Review | Post Feedback

WordPress plugin Post Feedback scored10%from 54 tests.

About plugin

  • Plugin page: post-feedback
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Apr 14, 2014
  • Latest release: Apr 24, 2014
  • Number of updates: 10
  • Update frequency: every 1.1 days
  • Top authors: arifqodari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,335 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/post-feedback/inc/functions.php+127
    Use of undefined constant pf_edit_screen - assumed 'pf_edit_screen' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.92MB] [CPU: ▼64.73ms] Passed 4 tests

A check of server-side resources used by Post Feedback
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.24 ▼35.92
Dashboard /wp-admin2.10 ▼1.245.81 ▼63.20
Posts /wp-admin/edit.php2.10 ▼1.255.74 ▼50.33
Add New Post /wp-admin/post-new.php2.10 ▼3.786.13 ▼109.48
Media Library /wp-admin/upload.php2.10 ▼1.137.47 ▼33.14
Post Feedback Options /wp-admin/options-general.php?page=pf_settings2.107.15

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
pf_options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Post Feedback: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲14713.46 ▼0.978.23 ▲6.2443.45 ▼1.42
Dashboard /wp-admin2,203 ▲265.59 ▼0.0585.76 ▼4.7538.48 ▼2.10
Posts /wp-admin/edit.php2,125 ▲253.82 ▲1.8055.22 ▲19.1733.87 ▼2.46
Add New Post /wp-admin/post-new.php1,545 ▲1718.15 ▼5.01633.98 ▼60.7381.60 ▲29.78
Media Library /wp-admin/upload.php1,414 ▲144.26 ▲0.0697.43 ▼8.3545.18 ▲3.15
Post Feedback Options /wp-admin/options-general.php?page=pf_settings1,6023.2169.8826.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/post-feedback/inc/functions.php+127
    Use of undefined constant pf_edit_screen - assumed 'pf_edit_screen' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=pf_settings
    • > Warning in wp-content/plugins/post-feedback/inc/functions.php+127
    Use of undefined constant pf_edit_screen - assumed 'pf_edit_screen' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=pf_settings
    • > Notice in wp-content/plugins/post-feedback/inc/settings.php+28
    Undefined index: posted
    • > GET request to /wp-admin/options-general.php?page=pf_settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=pf_settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=pf_settings
    • > Notice in wp-content/plugins/post-feedback/inc/settings.php+93
    Undefined index: enable
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=pf_settings
    • > Notice in wp-content/plugins/post-feedback/inc/settings.php+104
    Undefined index: n_options

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/post-feedback/post-feedback.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-feedback/inc/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-feedback/inc/scripts.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-feedback/inc/settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: post, analytics, feedback, post feedback, graph

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

The principal PHP file in "Post Feedback" v. 1.1 is loaded by WordPress automatically on each request
104 characters long description:
Create categorical feedback assessment for your blog posts and allows your users to send their feedback.

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 plugin395 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP57411290
JavaScript313069
CSS16036

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin