10% wp-bookmarks

Code Review | WP Bookmarks

WordPress plugin WP Bookmarks scored10%from 54 tests.

About plugin

  • Plugin page: wp-bookmarks
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2013
  • Latest release: Apr 30, 2014
  • Number of updates: 9
  • Update frequency: every 32.4 days
  • Top authors: conlabzgmbh (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,955 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.295.29 ▼36.27
Dashboard /wp-admin2.19 ▼1.116.40 ▼39.59
Posts /wp-admin/edit.php2.19 ▼1.166.07 ▼40.53
Add New Post /wp-admin/post-new.php2.19 ▼3.706.21 ▼82.30
Media Library /wp-admin/upload.php2.19 ▼1.045.71 ▼28.82
Categories /wp-admin/edit-tags.php?taxonomy=bookmark_categories&post_type=bookmarks2.205.85
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=bookmarks2.206.51
Add /wp-admin/post-new.php?post_type=bookmarks2.205.91
Bookmarks /wp-admin/edit.php?post_type=bookmarks2.207.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10913.25 ▼1.141.70 ▼0.3244.83 ▼0.13
Dashboard /wp-admin2,246 ▲615.04 ▼0.86105.86 ▲3.5243.83 ▼0.69
Posts /wp-admin/edit.php2,123 ▲312.00 ▲0.0235.81 ▼3.9333.89 ▼5.11
Add New Post /wp-admin/post-new.php1,559 ▲4523.14 ▲5.65683.46 ▼9.0952.62 ▼9.09
Media Library /wp-admin/upload.php1,428 ▲434.23 ▼0.0099.26 ▼6.8445.50 ▲0.31
Categories /wp-admin/edit-tags.php?taxonomy=bookmark_categories&post_type=bookmarks1,2992.1428.3528.30
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=bookmarks1,3412.1427.9827.14
Add /wp-admin/post-new.php?post_type=bookmarks2,4177.81167.7264.55
Bookmarks /wp-admin/edit.php?post_type=bookmarks1,0951.9330.8830.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP6163234710
CSS3150138
JavaScript2131286
PO File1363686

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 code0.36
Average class complexity31.33
▷ Minimum class complexity19.00
▷ Maximum class complexity51.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods515.15%
▷ Public methods1751.52%
▷ Protected methods824.24%
▷ Private methods824.24%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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