Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲1.56MB] [CPU: ▲4.15ms] 75% from 4 tests
This is a short check of server-side resources used by CBX Bookmark & Favorite
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,753.88ms on /wp-admin/admin.php?page=cbxwpbookmarkdash)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.97 ▲1.51 | 48.32 ▲6.44 |
Dashboard /wp-admin | 4.87 ▲1.56 | 54.82 ▲4.31 |
Posts /wp-admin/edit.php | 4.99 ▲1.63 | 60.22 ▲10.39 |
Add New Post /wp-admin/post-new.php | 7.47 ▲1.58 | 91.09 ▼4.54 |
Media Library /wp-admin/upload.php | 4.80 ▲1.57 | 49.26 ▲19.05 |
User Bookmarks /wp-admin/admin.php?page=cbxwpbookmark | 4.79 | 47.37 |
Bookmarks Dashboard /wp-admin/admin.php?page=cbxwpbookmarkdash | 6.03 | 1,753.88 |
Bookmark Categories /wp-admin/admin.php?page=cbxwpbookmarkcats | 4.79 | 45.05 |
Setting /wp-admin/admin.php?page=cbxwpbookmark_settings | 4.82 | 46.48 |
Server storage [IO: ▲2.90MB] [DB: ▲0.09MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 360 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_cbxwpbookmark |
wp_cbxwpbookmarkcat |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_cbxwpbookmarkedmost-widget |
db_upgraded |
cbxwpbookmark_basics |
cbxwpbookmark_tools |
widget_recent-posts |
widget_cbxwpbookmarkcategory |
widget_recent-comments |
widget_cbxwpbookmark-widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CBX Bookmark & Favorite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲226 | 13.55 ▼1.16 | 11.60 ▲9.95 | 29.35 ▼15.84 |
Dashboard /wp-admin | 2,226 ▲46 | 5.55 ▼0.10 | 93.63 ▼6.97 | 76.25 ▲29.58 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.00 ▲0.05 | 38.01 ▲0.29 | 35.60 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,728 ▲202 | 24.03 ▲0.74 | 755.88 ▲82.10 | 42.00 ▼18.61 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.13 ▼0.18 | 95.27 ▼6.29 | 74.68 ▲31.92 |
User Bookmarks /wp-admin/admin.php?page=cbxwpbookmark | 1,167 | 2.02 | 26.66 | 42.62 |
Bookmarks Dashboard /wp-admin/admin.php?page=cbxwpbookmarkdash | 1,578 | 2.00 | 21.66 | 55.32 |
Bookmark Categories /wp-admin/admin.php?page=cbxwpbookmarkcats | 1,170 | 2.05 | 25.86 | 33.68 |
Setting /wp-admin/admin.php?page=cbxwpbookmark_settings | 2,266 | 4.42 | 102.26 | 85.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_cbxwpbookmark
- wp_cbxwpbookmarkcat
- This plugin did not uninstall successfully, leaving 12 options in the database
- widget_cbxwpbookmarkcategory
- widget_cbxwpbookmarkedmost-widget
- cbxwpbookmark_tools
- db_upgraded
- theysaidso_admin_options
- widget_cbxwpbookmark-widget
- widget_theysaidso_widget
- widget_recent-comments
- cbxwpbookmark_basics
- cbxwpbookmark_customizer
- ...
Smoke tests 75% 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 everything seems fine, this is not 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 items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cbxwpbookmark/widgets/classic_widgets/category-widget/views/admin.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cbxwpbookmark/widgets/classic_widgets/mybookmark-widget/views/admin.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cbxwpbookmark/widgets/classic_widgets/most-widget/views/admin.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11, #12, #13, #14, #15, #16, #17, #18 in cbxwpbookmark/assets to your readme.txt
cbxwpbookmark/cbxwpbookmark.php Passed 13 tests
The main PHP file in "CBX Bookmark & Favorite" ver. 1.7.17 adds more information about the plugin and also serves as the entry point for this plugin
121 characters long description:
List/category based bookmark for WordPress, create your own private or public list of favorite posts, page, custom object
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
Good job! No executable or dangerous file extensions detected35,732 lines of code in 310 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 205 | 3,624 | 2,402 | 15,773 |
PHP | 48 | 2,594 | 2,985 | 9,186 |
CSS | 14 | 450 | 122 | 6,017 |
Sass | 36 | 1,007 | 118 | 4,640 |
SVG | 7 | 0 | 6 | 116 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 260.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 303 | |
▷ Static methods | 68 | 22.44% |
▷ Public methods | 288 | 95.05% |
▷ Protected methods | 9 | 2.97% |
▷ Private methods | 6 | 1.98% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
33 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/search_icon.png | 0.35KB | 0.41KB | 0.00% |
assets/img/delete_icon.png | 0.39KB | 0.61KB | 0.00% |
assets/img/close_icon_white.png | 0.23KB | 0.26KB | 0.00% |
assets/img/delete_icon_white.png | 0.41KB | 0.61KB | 0.00% |
assets/img/bookmarkicons/bookmark_before.png | 0.33KB | 0.34KB | 0.00% |