90% product-feature-request

Code Review | Product Feature Request

WordPress plugin Product Feature Request scored90%from 54 tests.

About plugin

  • Plugin page: product-feature-r...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 18, 2020
  • Latest release: Sep 29, 2023
  • Number of updates: 13
  • Update frequency: every 87.5 days
  • Top authors: ThemeHigh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,159 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.10ms] Passed 4 tests

A check of server-side resources used by Product Feature Request
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2639.97 ▲1.22
Dashboard /wp-admin3.54 ▲0.2046.32 ▼12.18
Posts /wp-admin/edit.php3.66 ▲0.3047.03 ▲0.35
Add New Post /wp-admin/post-new.php6.13 ▲0.2490.33 ▼4.18
Media Library /wp-admin/upload.php3.46 ▲0.2434.51 ▼0.38

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Product Feature Request
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲17113.59 ▼0.996.35 ▲4.6245.94 ▲5.44
Dashboard /wp-admin2,209 ▲244.88 ▼1.02111.12 ▲6.1542.20 ▲2.27
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0439.52 ▲0.4637.04 ▲0.42
Add New Post /wp-admin/post-new.php1,544 ▲2518.04 ▼5.13594.42 ▼94.6550.57 ▲2.84
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.0594.58 ▼2.0641.56 ▼7.54

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: feature requests, idea collector

product-feature-request/product-feature-request.php 92% from 13 tests

The main PHP script in "Product Feature Request" version 1.2.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,579 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP91723711,160
JavaScript2350201
CSS34613199
PO File10019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity24.11
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods74
▷ Static methods2229.73%
▷ Public methods6689.19%
▷ Protected methods00.00%
▷ Private methods810.81%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants753.85%
▷ Class constants646.15%
▷ Public constants6100.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 were not PNG files found in your plugin