Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▼2.13ms] Passed 4 tests
A check of server-side resources used by Post Bookmarks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 42.75 ▼2.09 |
Dashboard /wp-admin | 3.57 ▲0.22 | 54.87 ▼10.77 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 58.95 ▲7.00 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 104.05 ▼2.66 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 49.38 ▲11.82 |
All Links /wp-admin/link-manager.php | 3.51 | 41.41 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 3.49 | 39.40 |
Add New /wp-admin/link-add.php | 3.50 | 40.93 |
Post Bookmarks /wp-admin/options-general.php?page=pbkm_settings | 3.46 | 35.47 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
_post_bkmarks-db_version |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_links |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Bookmarks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.38 ▼0.05 | 1.67 ▼0.03 | 38.77 ▼3.82 |
Dashboard /wp-admin | 2,233 ▲56 | 5.62 ▼0.02 | 91.10 ▼2.01 | 40.59 ▼1.91 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.02 ▲0.04 | 40.74 ▲1.73 | 36.89 ▲0.12 |
Add New Post /wp-admin/post-new.php | 6,578 ▲5,050 | 26.26 ▲3.18 | 938.30 ▲267.14 | 59.51 ▲6.22 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.15 ▼0.05 | 110.86 ▲6.33 | 47.75 ▲0.75 |
All Links /wp-admin/link-manager.php | 1,072 | 2.02 | 31.36 | 33.97 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 1,412 | 2.13 | 27.55 | 32.65 |
Add New /wp-admin/link-add.php | 1,666 | 2.53 | 49.05 | 34.49 |
Post Bookmarks /wp-admin/options-general.php?page=pbkm_settings | 907 | 2.00 | 38.71 | 41.97 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_links
- widget_recent-posts
- db_upgraded
- _post_bkmarks-db_version
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-bookmarks/post_bkmarks-admin-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/post-bookmarks/post_bookmarks.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-bookmarks/post_bkmarks-ajax.php:108
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-bookmarks/post_bkmarks-settings.php:6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/post-bookmarks/post_bkmarks-admin-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/post-bookmarks/post_bkmarks-admin-table.php on line 4
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=pbkm_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable&ver=6.3.1 1:28609 "jQuery.Deferred exception: metabox.find(...).live is not a function" "TypeError: metabox.find(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/post-bookmarks/_inc/js/post_bkmarks_admin.js?ver=2.1.7:8:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=pbkm_settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable&ver=6.3.1 1:28721 Uncaught TypeError: metabox.find(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: links, custom links, related links, quick links, post links
post-bookmarks/post_bookmarks.php 92% from 13 tests
The main PHP file in "Post Bookmarks" ver. 2.1.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("post-bookmarks.php" instead of "post_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
There were no executable files found in this plugin1,809 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 493 | 270 | 1,226 |
JavaScript | 3 | 59 | 25 | 313 |
Sass | 2 | 45 | 0 | 148 |
CSS | 2 | 1 | 2 | 114 |
Ruby | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 50.67 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 60 | |
▷ Static methods | 7 | 11.67% |
▷ Public methods | 57 | 95.00% |
▷ Protected methods | 2 | 3.33% |
▷ Private methods | 1 | 1.67% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected