Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/hierarchical-bookmark-system/lib/Minifier.php+236
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▼1.82MB] [CPU: ▼57.94ms] Passed 4 tests
This is a short check of server-side resources used by Hierarchical Bookmark System
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.31 ▼42.89 |
Dashboard /wp-admin | 2.19 ▼1.15 | 10.58 ▼57.91 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 9.52 ▼39.65 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 5.59 ▼91.32 |
Media Library /wp-admin/upload.php | 2.19 ▼1.03 | 5.59 ▼31.53 |
Categories /wp-admin/edit-tags.php?taxonomy=bookmark_categories&post_type=bookmarks | 2.20 | 5.81 |
Add /wp-admin/post-new.php?post_type=bookmarks | 2.20 | 6.49 |
Bookmarks /wp-admin/edit.php?post_type=bookmarks | 2.20 | 6.79 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=bookmarks | 2.20 | 6.57 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Hierarchical Bookmark System
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲97 | 14.38 ▲0.07 | 2.03 ▲0.09 | 39.13 ▼4.63 |
Dashboard /wp-admin | 2,229 ▲61 | 5.64 ▼0.08 | 91.41 ▼12.26 | 42.58 ▼4.05 |
Posts /wp-admin/edit.php | 2,137 ▲40 | 2.00 ▼0.04 | 42.62 ▲5.86 | 34.94 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,571 ▲40 | 23.40 ▲0.14 | 648.67 ▼22.74 | 55.47 ▼6.64 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.23 ▲0.01 | 101.00 ▲0.04 | 46.91 ▼0.08 |
Categories /wp-admin/edit-tags.php?taxonomy=bookmark_categories&post_type=bookmarks | 1,311 | 2.14 | 27.37 | 32.80 |
Add /wp-admin/post-new.php?post_type=bookmarks | 2,477 | 7.73 | 192.63 | 70.28 |
Bookmarks /wp-admin/edit.php?post_type=bookmarks | 1,117 | 1.95 | 34.10 | 31.45 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=bookmarks | 1,353 | 2.17 | 28.56 | 31.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/hierarchical-bookmark-system/lib/Minifier.php+236
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=bookmarks
- > Warning in wp-content/plugins/hierarchical-bookmark-system/lib/Minifier.php+236
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
SRP 0% 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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hierarchical-bookmark-system/templates/post-new.php
- > /wp-content/plugins/hierarchical-bookmark-system/templates/post-success.php
- > /wp-content/plugins/hierarchical-bookmark-system/templates/single-bookmark.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_term() in wp-content/plugins/hierarchical-bookmark-system/templates/category-edit.php:5
- > PHP Notice
Undefined index: post in wp-content/plugins/hierarchical-bookmark-system/templates/post-edit.php on line 3
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/hierarchical-bookmark-system/lib/Minifier.php on line 236
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/hierarchical-bookmark-system/d-bookmarks.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_terms() in wp-content/plugins/hierarchical-bookmark-system/templates/post-edit.php:4
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/hierarchical-bookmark-system/lib/Minifier.php on line 236
- > PHP Notice
Undefined index: category in wp-content/plugins/hierarchical-bookmark-system/templates/category-edit.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: bookmarklet, firefox bookmark, bookmarks, chrome bookmark, post-type
hierarchical-bookmark-system/d-bookmarks.php 92% from 13 tests
"Hierarchical Bookmark System" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("hierarchical-bookmark-system.php" instead of "d-bookmarks.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,036 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 174 | 118 | 1,793 |
PHP | 8 | 261 | 274 | 1,013 |
JavaScript | 4 | 26 | 38 | 144 |
PO File | 1 | 36 | 36 | 86 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 35.67 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 5 | 13.51% |
▷ Public methods | 18 | 48.65% |
▷ Protected methods | 8 | 21.62% |
▷ Private methods | 11 | 29.73% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/close-circled.png | 0.31KB | 0.44KB | 0.00% |
templates/css/pencil_edit.png | 3.13KB | 0.42KB | ▼ 86.53% |
templates/css/delete.png | 0.34KB | 0.44KB | 0.00% |
css/browser_window.png | 0.14KB | 0.12KB | ▼ 14.08% |
templates/css/arrow-up.png | 0.21KB | 0.30KB | 0.00% |