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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.23 ▲0.50 | 57.13 ▲33.99 |
Dashboard /wp-admin | 3.42 ▲0.36 | 79.70 ▲24.19 |
Posts /wp-admin/edit.php | 3.42 ▲0.30 | 34.12 ▼21.33 |
Add New Post /wp-admin/post-new.php | 3.42 ▼2.02 | 29.14 ▼637.23 |
Media Library /wp-admin/upload.php | 3.42 ▲0.41 | 34.47 ▼6.48 |
Settings /wp-admin/edit.php?post_type=avfr&page=feature-request-settings | 3.42 | 34.44 |
Tags /wp-admin/edit-tags.php?taxonomy=featureTags&post_type=avfr | 3.42 | 28.80 |
Groups /wp-admin/edit-tags.php?taxonomy=groups&post_type=avfr | 3.42 | 36.06 |
All Features /wp-admin/edit.php?post_type=avfr | 3.42 | 33.45 |
New Feature /wp-admin/post-new.php?post_type=avfr | 3.42 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,956 ▲384 | 17.75 ▲2.17 | 8.55 ▼1.66 | 62.09 ▲2.05 |
Dashboard /wp-admin | 3,240 ▲309 | 8.31 ▲2.37 | 208.27 ▲36.67 | 146.41 ▲12.13 |
Posts /wp-admin/edit.php | 3,041 ▲302 | 4.45 ▲1.73 | 94.39 ▲12.51 | 95.61 ▼15.67 |
Add New Post /wp-admin/post-new.php | 1,671 ▼12 | 21.90 ▲5.69 | 304.43 ▼120.20 | 121.05 ▼12.00 |
Media Library /wp-admin/upload.php | 1,887 ▲80 | 4.96 ▼0.07 | 139.54 ▼33.53 | 141.48 ▲2.75 |
Settings /wp-admin/edit.php?post_type=avfr&page=feature-request-settings | 1,927 | 4.19 | 98.72 | 100.44 |
Tags /wp-admin/edit-tags.php?taxonomy=featureTags&post_type=avfr | 2,060 | 4.29 | 91.96 | 99.29 |
Groups /wp-admin/edit-tags.php?taxonomy=groups&post_type=avfr | 2,183 | 4.30 | 94.89 | 104.60 |
All Features /wp-admin/edit.php?post_type=avfr | 2,733 | 4.40 | 103.59 | 97.77 |
New Feature /wp-admin/post-new.php?post_type=avfr | 3,712 | 8.88 | 276.68 | 183.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 1,025 | 939 | 2,805 |
PO File | 2 | 446 | 484 | 1,124 |
JavaScript | 4 | 114 | 24 | 265 |
CSS | 2 | 0 | 0 | 2 |
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 code | 0.34 |
Average class complexity | 15.12 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 6 | 5.83% |
▷ Public methods | 98 | 95.15% |
▷ Protected methods | 3 | 2.91% |
▷ Private methods | 2 | 1.94% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/image/close.png | 0.40KB | 0.23KB | ▼ 41.38% |
public/assets/image/refresh.png | 1.14KB | 0.37KB | ▼ 67.44% |