10% blogroll-dropdown-links

Code Review | Blogroll Dropdown Links

WordPress plugin Blogroll Dropdown Links scored10%from 54 tests.

About plugin

  • Plugin page: blogroll-dropdown...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 26, 2018
  • Latest release: May 25, 2022
  • Number of updates: 28
  • Update frequency: every 44.5 days
  • Top authors: TheFreeWindows (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,304 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/blogroll-dropdown-links/plugin.php+111
    Function create_function() is deprecated

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

Analyzing server-side resources used by Blogroll Dropdown Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.26 ▼35.99
Dashboard /wp-admin2.05 ▼1.265.63 ▼41.96
Posts /wp-admin/edit.php2.05 ▼1.316.09 ▼36.39
Add New Post /wp-admin/post-new.php2.05 ▼3.845.41 ▼78.16
Media Library /wp-admin/upload.php2.05 ▼1.186.22 ▼28.21
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category2.055.11
Add New /wp-admin/link-add.php2.055.88
All Links /wp-admin/link-manager.php2.056.04

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_blogroll-dropdown-widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blogroll Dropdown Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.22 ▼1.531.78 ▲0.1543.77 ▼0.76
Dashboard /wp-admin2,240 ▲524.85 ▼0.06111.89 ▼2.3241.94 ▼1.69
Posts /wp-admin/edit.php2,120 ▲342.00 ▼0.0534.15 ▼1.6532.39 ▼0.87
Add New Post /wp-admin/post-new.php1,540 ▲2017.58 ▼5.47678.16 ▼18.9752.06 ▼10.81
Media Library /wp-admin/upload.php1,419 ▲314.22 ▲0.05100.59 ▼6.1244.19 ▼3.14
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,2962.1425.4228.60
Add New /wp-admin/link-add.php1,6442.2445.2833.88
All Links /wp-admin/link-manager.php1,0561.7025.7230.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/blogroll-dropdown-links/plugin.php+111
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_blogroll-dropdown-widget
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/link-manager.php
    • > Deprecated in wp-content/plugins/blogroll-dropdown-links/plugin.php+111
    Function create_function() is deprecated

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/blogroll-dropdown-links/plugin.php:12
    • > PHP Notice
      Undefined variable: link_cat in wp-content/plugins/blogroll-dropdown-links/views/widget.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bookmarks() in wp-content/plugins/blogroll-dropdown-links/views/widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function blogrolldrop_categories_to_array() in wp-content/plugins/blogroll-dropdown-links/views/admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Configuring the widget) image missing
The official readme.txt might help

blogroll-dropdown-links/plugin.php 85% from 13 tests

The principal PHP file in "Blogroll Dropdown Links" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("blogroll-dropdown-links.php" instead of "plugin.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin131 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34720126
CSS1105

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin