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
Install script ran successfully
Server metrics [RAM: ▲0.89MB] [CPU: ▼3.88ms] Passed 4 tests
Server-side resources used by WOW Best Suggestion Boxes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.02 ▲1.56 | 54.98 ▲10.85 |
Dashboard /wp-admin | 4.92 ▲1.62 | 64.72 ▲13.90 |
Posts /wp-admin/edit.php | 4.99 ▲1.63 | 60.05 ▲8.46 |
Add New Post /wp-admin/post-new.php | 4.72 ▼1.16 | 46.24 ▼48.72 |
Media Library /wp-admin/upload.php | 4.77 ▲1.55 | 50.34 ▲16.56 |
Suggestions /wp-admin/admin.php?page=best-suggestion-boxes | 4.77 | 47.95 |
Add New Screen /wp-admin/admin.php?page=best-suggestion-boxes-screen | 4.77 | 46.30 |
Add New Suggest /wp-admin/admin.php?page=best-suggestion-boxes-suggest | 4.81 | 47.92 |
Server storage [IO: ▲9.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 492 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_best_suggestion_boxes_suggest |
wp_best_suggestion_boxes_suggest_group |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
WOW Best Suggestion Boxes: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,103 ▲332 | 18.42 ▲3.67 | 1.70 ▼0.10 | 42.16 ▼1.64 |
Dashboard /wp-admin | 2,507 ▲319 | 9.16 ▲4.30 | 179.81 ▲67.77 | 39.34 ▼5.71 |
Posts /wp-admin/edit.php | 2,438 ▲352 | 6.16 ▲4.16 | 73.56 ▲36.95 | 28.11 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,618 ▲85 | 19.94 ▼3.39 | 736.76 ▲55.29 | 47.48 ▼30.75 |
Media Library /wp-admin/upload.php | 1,555 ▲170 | 6.59 ▲2.41 | 109.47 ▲7.26 | 46.98 ▼0.63 |
Suggestions /wp-admin/admin.php?page=best-suggestion-boxes | 1,281 | 6.08 | 66.63 | 24.62 |
Settings /wp-admin/crb_carbon_fields_container_settings.php | 26 | 0.44 | 0.10 | 16.25 |
Add New Screen /wp-admin/admin.php?page=best-suggestion-boxes-screen | 1,155 | 5.90 | 60.48 | 21.83 |
Add New Suggest /wp-admin/admin.php?page=best-suggestion-boxes-suggest | 1,729 | 10.19 | 150.78 | 45.82 |
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
These items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_best_suggestion_boxes_suggest_group
- wp_best_suggestion_boxes_suggest
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/best-suggestion-boxes/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 119× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Event\\Listener' not found in wp-content/plugins/best-suggestion-boxes/vendor/htmlburger/carbon-fields/core/Event/PersistentListener.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/best-suggestion-boxes/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Any_Equality_Comparer.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/best-suggestion-boxes/vendor/htmlburger/carbon-fields/core/Container/Nav_Menu_Item_Container.php:12
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/best-suggestion-boxes/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Parent_ID_Condition.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/best-suggestion-boxes/vendor/htmlburger/carbon-fields/templates/Container/term_meta.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\File_Field' not found in wp-content/plugins/best-suggestion-boxes/vendor/htmlburger/carbon-fields/core/Field/Image_Field.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/best-suggestion-boxes/vendor/htmlburger/carbon-fields/core/Field/Complex_Field.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/best-suggestion-boxes/vendor/htmlburger/carbon-fields/templates/Container/widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/best-suggestion-boxes/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Term_Condition.php:30
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Interface' not found in wp-content/plugins/best-suggestion-boxes/vendor/htmlburger/carbon-fields/core/Datastore/Datastore.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/crb_carbon_fields_container_settings.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== best-suggestion-boxes ===
) - Tags: You are using too many tags: 12 tag instead of maximum 10
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in best-suggestion-boxes/assets to your readme.txt
best-suggestion-boxes/nguyen-app.php 92% from 13 tests
Analyzing the main PHP file in "WOW Best Suggestion Boxes" version 2.0.2
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("best-suggestion-boxes.php" instead of "nguyen-app.php")
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
Everything looks great! No dangerous files found in this plugin28,589 lines of code in 427 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 175 | 5,198 | 8,551 | 12,986 |
PHP | 158 | 2,648 | 7,076 | 9,362 |
PO File | 27 | 856 | 1,064 | 2,293 |
Sass | 48 | 339 | 0 | 1,769 |
CSS | 10 | 325 | 1,147 | 1,686 |
JSON | 4 | 0 | 0 | 360 |
Markdown | 4 | 32 | 0 | 91 |
SVG | 1 | 0 | 1 | 42 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 128 | |
▷ Abstract classes | 11 | 8.59% |
▷ Concrete classes | 117 | 91.41% |
▷ Final classes | 1 | 0.85% |
Methods | 945 | |
▷ Static methods | 91 | 9.63% |
▷ Public methods | 768 | 81.27% |
▷ Protected methods | 165 | 17.46% |
▷ Private methods | 12 | 1.27% |
Functions | 106 | |
▷ Named functions | 24 | 22.64% |
▷ Anonymous functions | 82 | 77.36% |
Constants | 32 | |
▷ Global constants | 9 | 28.12% |
▷ Class constants | 23 | 71.88% |
▷ Public constants | 23 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.77MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screen-shot-2.png | 25.27KB | 6.68KB | ▼ 73.58% |
assets/screen-shot-4.png | 69.15KB | 20.31KB | ▼ 70.63% |
assets/icon-256x256.png | 5.16KB | 2.89KB | ▼ 43.98% |
assets/screen-shot-3.png | 77.13KB | 21.63KB | ▼ 71.95% |
assets/banner-772x250-rtl.png | 77.96KB | 38.24KB | ▼ 50.95% |