10% diigo-bookmarks-widget

Code Review | Diigo Bookmarks Widget

WordPress plugin Diigo Bookmarks Widget scored10%from 54 tests.

About plugin

  • Plugin page: diigo-bookmarks-w...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Jan 25, 2013
  • Latest release: Jan 25, 2013
  • Number of updates: 15
  • Update frequency: N/A
  • Top authors: mhk63 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,364 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/diigo-bookmarks-widget/diigo_widget.php+14
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.64ms] Passed 4 tests

Server-side resources used by Diigo Bookmarks Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.41 ▼40.76
Dashboard /wp-admin2.05 ▼1.266.31 ▼45.74
Posts /wp-admin/edit.php2.05 ▼1.316.18 ▼47.75
Add New Post /wp-admin/post-new.php2.05 ▼3.845.68 ▼88.30
Media Library /wp-admin/upload.php2.05 ▼1.184.84 ▼32.91

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_diigo_widget
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Diigo Bookmarks Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲18913.61 ▼0.758.18 ▲6.2645.12 ▼0.29
Dashboard /wp-admin2,203 ▲185.87 ▼0.01110.66 ▲7.2142.77 ▲1.88
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0038.52 ▼4.7136.59 ▲3.05
Add New Post /wp-admin/post-new.php1,514 ▼2317.64 ▼5.66664.37 ▼27.0361.33 ▲2.76
Media Library /wp-admin/upload.php1,385 ▼34.18 ▲0.02106.50 ▲6.2544.43 ▼3.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/diigo-bookmarks-widget/diigo_widget.php+14
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_diigo_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/diigo-bookmarks-widget/views/widget.php
    • > /wp-content/plugins/diigo-bookmarks-widget/diigo_widget.php
    • > /wp-content/plugins/diigo-bookmarks-widget/lib/diigo.class.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: before_title in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 19
    • > PHP Warning
      get_class() called without object from outside a class in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 7
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 18
    • > PHP Warning
      get_class() called without object from outside a class in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 2
    • > PHP Notice
      Undefined variable: bookmarks in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 21
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 21
    • > PHP Warning
      get_class() called without object from outside a class in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 2
    • > PHP Notice
      Undefined variable: after_widget in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 32
    • > PHP Warning
      get_class() called without object from outside a class in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 20
    • > PHP Notice
      Undefined variable: after_title in wp-content/plugins/diigo-bookmarks-widget/views/widget.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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 your attention:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

diigo-bookmarks-widget/diigo_widget.php 85% from 13 tests

The primary PHP file in "Diigo Bookmarks Widget" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("diigo-bookmarks-widget.php" instead of "diigo_widget.php")
  • Description: The description should be shorter than 140 characters (currently 504 characters long)

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 detected383 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45128383

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin