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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.24 ▼35.92 |
Dashboard /wp-admin | 2.10 ▼1.24 | 5.81 ▼63.20 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 5.74 ▼50.33 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 6.13 ▼109.48 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 7.47 ▼33.14 |
Post Feedback Options /wp-admin/options-general.php?page=pf_settings | 2.10 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲147 | 13.46 ▼0.97 | 8.23 ▲6.24 | 43.45 ▼1.42 |
Dashboard /wp-admin | 2,203 ▲26 | 5.59 ▼0.05 | 85.76 ▼4.75 | 38.48 ▼2.10 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 3.82 ▲1.80 | 55.22 ▲19.17 | 33.87 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.15 ▼5.01 | 633.98 ▼60.73 | 81.60 ▲29.78 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.26 ▲0.06 | 97.43 ▼8.35 | 45.18 ▲3.15 |
Post Feedback Options /wp-admin/options-general.php?page=pf_settings | 1,602 | 3.21 | 69.88 | 26.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 74 | 11 | 290 |
JavaScript | 3 | 13 | 0 | 69 |
CSS | 1 | 6 | 0 | 36 |
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 code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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