84% toolbar-plugins-link

Code Review | Toolbar Plugins Link

WordPress plugin Toolbar Plugins Link scored 84% from 54 tests.

About plugin

  • Plugin page: toolbar-plugins-link
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2015
  • Latest release: Dec 23, 2022
  • Number of updates: 26
  • Update frequency: every 101.1 days
  • Top authors: Hareesh Pillai (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 2,185 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.33ms] Passed 4 tests

This is a short check of server-side resources used by Toolbar Plugins Link
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.58 ▼0.02
Dashboard /wp-admin3.31 ▲0.0143.56 ▼4.89
Posts /wp-admin/edit.php3.36 ▲0.0144.66 ▼3.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.17 ▼1.17
Media Library /wp-admin/upload.php3.23 ▲0.0135.05 ▼0.07

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Toolbar Plugins Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.14 ▼1.121.60 ▼0.0341.63 ▼4.38
Dashboard /wp-admin2,206 ▲154.85 ▲0.02111.76 ▲5.4738.74 ▼3.92
Posts /wp-admin/edit.php2,089 ▲32.02 ▲0.0339.54 ▲1.5936.21 ▲1.79
Add New Post /wp-admin/post-new.php1,536 ▲223.22 ▼0.06620.98 ▼51.5554.90 ▲2.55
Media Library /wp-admin/upload.php1,385 ▼04.20 ▼0.1393.45 ▼11.5942.36 ▼1.14

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolbar-plugins-link/toolbar-plugins-link.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: developer, admin-bar, development, toolbar, plugins

toolbar-plugins-link/toolbar-plugins-link.php 92% from 13 tests

Analyzing the main PHP file in "Toolbar Plugins Link" version 1.3.2
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 233 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected34 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP172318
PO File11116

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.83
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%
Functions2
▷ Named functions2100.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 files were detected