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 had errors
- > Warning in wp-content/plugins/wp-bookmarks/lib/Minifier.php+236
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▼1.82MB] [CPU: ▼49.67ms] Passed 4 tests
An overview of server-side resources used by WP Bookmarks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.29 ▼36.27 |
Dashboard /wp-admin | 2.19 ▼1.11 | 6.40 ▼39.59 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 6.07 ▼40.53 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 6.21 ▼82.30 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 5.71 ▼28.82 |
Categories /wp-admin/edit-tags.php?taxonomy=bookmark_categories&post_type=bookmarks | 2.20 | 5.85 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=bookmarks | 2.20 | 6.51 |
Add /wp-admin/post-new.php?post_type=bookmarks | 2.20 | 5.91 |
Bookmarks /wp-admin/edit.php?post_type=bookmarks | 2.20 | 7.59 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Bookmarks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲109 | 13.25 ▼1.14 | 1.70 ▼0.32 | 44.83 ▼0.13 |
Dashboard /wp-admin | 2,246 ▲61 | 5.04 ▼0.86 | 105.86 ▲3.52 | 43.83 ▼0.69 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.00 ▲0.02 | 35.81 ▼3.93 | 33.89 ▼5.11 |
Add New Post /wp-admin/post-new.php | 1,559 ▲45 | 23.14 ▲5.65 | 683.46 ▼9.09 | 52.62 ▼9.09 |
Media Library /wp-admin/upload.php | 1,428 ▲43 | 4.23 ▼0.00 | 99.26 ▼6.84 | 45.50 ▲0.31 |
Categories /wp-admin/edit-tags.php?taxonomy=bookmark_categories&post_type=bookmarks | 1,299 | 2.14 | 28.35 | 28.30 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=bookmarks | 1,341 | 2.14 | 27.98 | 27.14 |
Add /wp-admin/post-new.php?post_type=bookmarks | 2,417 | 7.81 | 167.72 | 64.55 |
Bookmarks /wp-admin/edit.php?post_type=bookmarks | 1,095 | 1.93 | 30.88 | 30.22 |
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/wp-bookmarks/lib/Minifier.php+236
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=bookmarks
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/wp-bookmarks/lib/Minifier.php+236
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- > GET request to /wp-admin/post-new.php?post_type=bookmarks
- > User deprecated in wp-includes/functions.php+5828
Hook media_buttons_context is deprecated since version 3.5.0! Use media_buttons instead.
SRP 0% 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
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-bookmarks/templates/post-new.php
- > /wp-content/plugins/wp-bookmarks/templates/single-bookmark.php
- > /wp-content/plugins/wp-bookmarks/templates/post-success.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-bookmarks/wp-bookmarks.php:31
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-bookmarks/lib/Minifier.php on line 236
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-bookmarks/lib/Minifier.php on line 236
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: bookmarklet, bookmarks, post-type
wp-bookmarks/wp-bookmarks.php 92% from 13 tests
The primary PHP file in "WP Bookmarks" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 182 characters long)
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 plugin1,020 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 163 | 234 | 710 |
CSS | 3 | 15 | 0 | 138 |
JavaScript | 2 | 13 | 12 | 86 |
PO File | 1 | 36 | 36 | 86 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 31.33 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.76 |
▷ 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 | 33 | |
▷ Static methods | 5 | 15.15% |
▷ Public methods | 17 | 51.52% |
▷ Protected methods | 8 | 24.24% |
▷ Private methods | 8 | 24.24% |
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
No PNG images were found in this plugin