Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.38ms] Passed 4 tests
Analyzing server-side resources used by WP Social Feedback
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.50 ▼34.81 |
Dashboard /wp-admin | 2.05 ▼1.25 | 5.55 ▼42.70 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.41 ▼42.45 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.66 ▼93.54 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.33 ▼27.08 |
Add New /wp-admin/post-new.php?post_type=request | 2.05 | 5.76 |
WP Feedback /wp-admin/options-general.php?page=wp_social_feedback/fdb_settings_page.php | 2.05 | 7.41 |
Feedback /wp-admin/edit.php?post_type=request | 2.05 | 6.66 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_fdb_votes |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
fdb_version |
can_compress_scripts |
fdb_form_response |
db_upgraded |
widget_recent-posts |
fdb_form_description |
fdb_form_not_logged_in |
fdb_jqueryui_theme |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Social Feedback
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,032 ▲297 | 14.16 ▼0.22 | 12.54 ▲10.88 | 56.14 ▲15.37 |
Dashboard /wp-admin | 2,242 ▲56 | 4.82 ▼0.05 | 107.87 ▼11.17 | 40.23 ▼5.80 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.00 ▼0.05 | 39.58 ▼1.20 | 33.91 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,567 ▲34 | 23.16 ▼0.07 | 601.53 ▼5.11 | 74.43 ▲20.78 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.17 ▼0.09 | 93.37 ▼1.40 | 40.33 ▼2.20 |
Add New /wp-admin/post-new.php?post_type=request | 2,403 | 7.65 | 179.32 | 68.25 |
WP Feedback /wp-admin/options-general.php?page=wp_social_feedback/fdb_settings_page.php | 28 | 0.44 | 0.07 | 3.87 |
Feedback /wp-admin/edit.php?post_type=request | 1,097 | 2.00 | 30.27 | 27.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- fdb_version
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=request
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=request
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-social-feedback/templates/admin_icons.css.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-social-feedback/fdb.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/wp-social-feedback/templates/display_requests.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/wp-social-feedback/templates/display_feedback_form.php:3
- > PHP Warning
Use of undefined constant FDB_CURRENT_VERSION - assumed 'FDB_CURRENT_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-social-feedback/fdb_settings_page.php on line 2
- > PHP Warning
Use of undefined constant FDB_PLUGIN_URL - assumed 'FDB_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-social-feedback/templates/admin_icons.css.php on line 3
- > PHP Warning
Use of undefined constant FDB_CURRENT_BUILD - assumed 'FDB_CURRENT_BUILD' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-social-feedback/fdb_settings_page.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-social-feedback/fdb_settings_page.php:6
- > PHP Warning
Use of undefined constant FDB_PUGIN_NAME - assumed 'FDB_PUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-social-feedback/fdb_settings_page.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=request
- > Network (severe)
wp-content/plugins/wp_social_feedback/js/wp_settings_admin.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=request
- > Network (severe)
wp-content/plugins/wp_social_feedback/images/wp_feedback_icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp_social_feedback/fdb_settings_page.php
- > Network (severe)
wp-admin/options-general.php?page=wp_social_feedback/fdb_settings_page.php - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Feedback details), #2 (Feedback form), #3 (Feedback results)
wp-social-feedback/fdb.php 92% from 13 tests
The main file in "WP Social Feedback" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-social-feedback.php" instead of "fdb.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin703 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 176 | 99 | 480 |
CSS | 1 | 34 | 2 | 164 |
JavaScript | 1 | 5 | 0 | 35 |
PO File | 1 | 5 | 12 | 24 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.50MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 334.37KB | 128.64KB | ▼ 61.53% |
images/featured.png | 0.55KB | 0.57KB | 0.00% |
images/icon.png | 0.68KB | 0.83KB | 0.00% |
images/wp_feedback_icon.png | 0.74KB | 0.74KB | ▼ 0.79% |
screenshot-1.png | 72.86KB | 28.05KB | ▼ 61.50% |