Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.79ms] Passed 4 tests
Server-side resources used by Anyway Feedback
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.50 ▼4.54 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.53 ▼5.88 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 46.65 ▲3.80 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.63 ▼12.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.57 ▲4.37 |
Anyway Feedback /wp-admin/options-general.php?page=anyway-feedback | 3.29 | 32.91 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 58 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_afb_feedbacks |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
afb_db_version |
widget_recent-comments |
db_upgraded |
widget_anyway-feedback-popular-widgets |
Browser metrics Passed 4 tests
An overview of browser requirements for Anyway Feedback
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.34 ▼1.09 | 4.17 ▲2.45 | 39.68 ▼6.21 |
Dashboard /wp-admin | 2,210 ▲21 | 4.86 ▼0.09 | 113.11 ▼9.92 | 43.86 ▼2.57 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.04 ▲0.00 | 39.78 ▲3.77 | 35.19 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.26 ▲5.71 | 648.15 ▼24.25 | 58.81 ▼2.04 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.18 ▼0.05 | 95.18 ▼0.83 | 41.92 ▲1.13 |
Anyway Feedback /wp-admin/options-general.php?page=anyway-feedback | 1,122 | 2.22 | 28.05 | 32.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_anyway-feedback-popular-widgets
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'AFB\\Pattern\\Singleton' not found in wp-content/plugins/anyway-feedback/app/Pattern/Controller.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/anyway-feedback/app/Widget/Popular.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/anyway-feedback/app/Admin/Table.php:16
- > PHP Fatal error
Uncaught Error: Class 'AFB\\Pattern\\Controller' not found in wp-content/plugins/anyway-feedback/app/Main.php:13
- > PHP Fatal error
Uncaught Error: Class 'AFB\\Pattern\\Singleton' not found in wp-content/plugins/anyway-feedback/app/Model/Base.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/anyway-feedback/anyway-feedback.php:36
- > PHP Fatal error
Uncaught Error: Class 'AFB\\Model\\Base' not found in wp-content/plugins/anyway-feedback/app/Model/FeedBacks.php:11
- > PHP Fatal error
Uncaught Error: Class 'AFB\\Pattern\\Singleton' not found in wp-content/plugins/anyway-feedback/app/Helper/i18n.php:13
- > PHP Fatal error
Uncaught Error: Class 'AFB\\Pattern\\Controller' not found in wp-content/plugins/anyway-feedback/app/Admin/Screen.php:14
- > PHP Fatal error
Uncaught Error: Class 'AFB\\Pattern\\Singleton' not found in wp-content/plugins/anyway-feedback/app/Helper/Input.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=anyway-feedback
- > Javascript (severe) in unknown
/wp-content/plugins/anyway-feedback/assets/js/admin-script.js?ver=0.8 31:4 Uncaught ReferenceError: AFB is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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:
- Tested up to: Version format is invalid
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Controller looks like this. You can customize it with your own css and markup.), #2 (Super cool statistic summary in admin panel! Yeah!), #3 (Simple setting. Documentations are also on admin screen!)
anyway-feedback/anyway-feedback.php Passed 13 tests
This is the main PHP file of "Anyway Feedback" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
79 characters long description:
Help to assemble simple feedback(negative or positive) and get statics of them.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,182 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 211 | 714 | 1,356 |
JavaScript | 7 | 106 | 77 | 656 |
PO File | 1 | 104 | 125 | 297 |
Sass | 2 | 21 | 5 | 268 |
Markdown | 4 | 133 | 0 | 229 |
CSS | 2 | 11 | 60 | 208 |
JSON | 4 | 0 | 0 | 114 |
HTML | 2 | 0 | 0 | 34 |
Ruby | 1 | 5 | 6 | 10 |
YAML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 3 | 30.00% |
▷ Concrete classes | 7 | 70.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 1 | 1.37% |
▷ Public methods | 60 | 82.19% |
▷ Protected methods | 12 | 16.44% |
▷ Private methods | 1 | 1.37% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.50MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/undo.png | 0.61KB | 0.75KB | 0.00% |
screenshot-3.png | 229.26KB | 62.79KB | ▼ 72.61% |
assets/img/smallbutton.png | 0.14KB | 0.19KB | 0.00% |
screenshot-2.png | 190.09KB | 52.46KB | ▼ 72.40% |
screenshot-1.png | 87.34KB | 23.67KB | ▼ 72.90% |