63% feature-request

Code Review | Feature Request & Idea Collector

WordPress plugin Feature Request & Idea Collector scored 63% from 54 tests.

About plugin

  • Plugin page: feature-request
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.4
  • WordPress version: 5.8.1
  • First release: Oct 22, 2015
  • Latest release: May 6, 2017
  • Number of updates: 23
  • Update frequency: every 24.3 days
  • Top authors: averta (95.65%)Otto42 (13.04%)

Code review

54 tests

User reviews

10 reviews

Install metrics

100+ active / 4,842 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.24MB] [CPU: ▼160.21ms] Passed 4 tests

This is a short check of server-side resources used by Feature Request & Idea Collector
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.23 ▲0.5057.13 ▲33.99
Dashboard /wp-admin3.42 ▲0.3679.70 ▲24.19
Posts /wp-admin/edit.php3.42 ▲0.3034.12 ▼21.33
Add New Post /wp-admin/post-new.php3.42 ▼2.0229.14 ▼637.23
Media Library /wp-admin/upload.php3.42 ▲0.4134.47 ▼6.48
Settings /wp-admin/edit.php?post_type=avfr&page=feature-request-settings3.4234.44
Tags /wp-admin/edit-tags.php?taxonomy=featureTags&post_type=avfr3.4228.80
Groups /wp-admin/edit-tags.php?taxonomy=groups&post_type=avfr3.4236.06
All Features /wp-admin/edit.php?post_type=avfr3.4233.45
New Feature /wp-admin/post-new.php?post_type=avfr3.4233.80

Server storage [IO: ▲0.31MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 5 new options
New WordPress options
avfr_settings_resets
avfr_settings_advanced
avfr_tax_option_moved
avfr_settings_mail
groups_children

Browser metrics Passed 4 tests

This is an overview of browser requirements for Feature Request & Idea Collector
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,956 ▲38417.75 ▲2.178.55 ▼1.6662.09 ▲2.05
Dashboard /wp-admin3,240 ▲3098.31 ▲2.37208.27 ▲36.67146.41 ▲12.13
Posts /wp-admin/edit.php3,041 ▲3024.45 ▲1.7394.39 ▲12.5195.61 ▼15.67
Add New Post /wp-admin/post-new.php1,671 ▼1221.90 ▲5.69304.43 ▼120.20121.05 ▼12.00
Media Library /wp-admin/upload.php1,887 ▲804.96 ▼0.07139.54 ▼33.53141.48 ▲2.75
Settings /wp-admin/edit.php?post_type=avfr&page=feature-request-settings1,9274.1998.72100.44
Tags /wp-admin/edit-tags.php?taxonomy=featureTags&post_type=avfr2,0604.2991.9699.29
Groups /wp-admin/edit-tags.php?taxonomy=groups&post_type=avfr2,1834.3094.89104.60
All Features /wp-admin/edit.php?post_type=avfr2,7334.40103.5997.77
New Feature /wp-admin/post-new.php?post_type=avfr3,7128.88276.68183.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/feature-request/admin/includes/class-avfr-settings-api.php+107
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 5 options
    • avfr_settings_resets
    • avfr_tax_option_moved
    • avfr_settings_advanced
    • groups_children
    • avfr_settings_mail

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 35 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=avfr
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/feature-request/admin/includes/class-avfr-settings-api.php+107
    Function create_function() is deprecated

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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/feature-request/public/includes/create-image.php
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/feature-request/templates/template-avfr.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/feature-request/public/includes/class-avfr-shortcodes.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feature-request/admin/includes/class-avfr-settings-api.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feature-request/admin/includes/class-avfr-meta.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feature-request/includes/class-avfr-votes.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feature-request/includes/class-avfr-upgrade.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/feature-request/public/includes/avfr-functions.php:151
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/feature-request/admin/includes/class-avfr-columns.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feature-request/includes/class-avfr-post-type.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feature-request/includes/class-avfr-status.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: feature request, idea suggestion, suggestion system

feature-request/feature-request.php Passed 13 tests

The main PHP script in "Feature Request & Idea Collector" version 1.3.1 is automatically included on every request by WordPress
74 characters long description:
Feature request and suggestion submitter with voting system for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin4,196 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP231,0259392,805
PO File24464841,124
JavaScript411424265
CSS2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity15.12
▷ Minimum class complexity2.00
▷ Maximum class complexity49.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods103
▷ Static methods65.83%
▷ Public methods9895.15%
▷ Protected methods32.91%
▷ Private methods21.94%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/image/close.png0.40KB0.23KB▼ 41.38%
public/assets/image/refresh.png1.14KB0.37KB▼ 67.44%