72% highlight-bookmark-manager

Code Review | Highlight Bookmark Manager

WordPress plugin Highlight Bookmark Manager scored72%from 54 tests.

About plugin

  • Plugin page: highlight-bookmar...
  • Plugin version: 1.11.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 25, 2016
  • Latest release: Aug 3, 2016
  • Number of updates: 22
  • Update frequency: every 0.4 days
  • Top authors: hilight (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /1,462 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.15MB] [CPU: ▼19.79ms] Passed 4 tests

Analyzing server-side resources used by Highlight Bookmark Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.33 ▼8.02
Dashboard /wp-admin3.23 ▼0.1230.91 ▼28.32
Posts /wp-admin/edit.php3.30 ▼0.0633.45 ▼13.31
Add New Post /wp-admin/post-new.php5.47 ▼0.4268.51 ▼29.52
Media Library /wp-admin/upload.php3.24 ▲0.0031.97 ▼2.95
Highlight Bookmark Manager /wp-admin/options-general.php?page=highlight_bookmark_manager3.2131.31

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
highlight_bookmark_manager_settings
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Highlight Bookmark Manager: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.20 ▼1.191.75 ▲0.0145.51 ▲3.10
Dashboard /wp-admin2,218 ▲274.87 ▼0.18113.85 ▲9.6042.09 ▲1.87
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0434.66 ▼5.8535.88 ▲0.45
Add New Post /wp-admin/post-new.php1,595 ▲5322.55 ▲4.26593.58 ▼47.9040.68 ▼14.46
Media Library /wp-admin/upload.php1,397 ▲64.22 ▼0.09111.96 ▲12.8145.60 ▲0.71
Highlight Bookmark Manager /wp-admin/options-general.php?page=highlight_bookmark_manager9042.0627.7739.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • highlight_bookmark_manager_settings
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=highlight_bookmark_manager
    • > User deprecated in wp-includes/functions.php+5737
    Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=highlight_bookmark_manager
    • > Warning in wp-content/plugins/highlight-bookmark-manager/highlight_bookmark_manager.php+126
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=highlight_bookmark_manager
    • > Warning in wp-content/plugins/highlight-bookmark-manager/highlight_bookmark_manager.php+126
    file_get_contents(http://manager.hilight.cc/api/wp_plugin/status?website_domain=wp.com): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=highlight_bookmark_manager
    • > Notice in wp-content/plugins/highlight-bookmark-manager/highlight_bookmark_manager.php+100
    Trying to access array offset on value of type null

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/highlight-bookmark-manager/highlight_bookmark_manager.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=highlight_bookmark_manager
    • > Network (severe)
    http://www.hilight.cc/assets/images/wp_icon_128x128.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Invalid plugin version format
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === highlight-bookmark-manager === )
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
Please take inspiration from this readme.txt

highlight-bookmark-manager/highlight_bookmark_manager.php 92% from 13 tests

The primary PHP file in "Highlight Bookmark Manager" version 1.11.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("highlight-bookmark-manager.php" instead of "highlight_bookmark_manager.php")

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
Success! There were no dangerous files found in this plugin313 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11835236
CSS111877

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin