89% top-bar-links

Code Review | Top Bar Links, add custom links to the admin top bar

WordPress plugin Top Bar Links, add custom links to the admin top bar scored89%from 54 tests.

About plugin

  • Plugin page: top-bar-links
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 7, 2020
  • Latest release: Aug 9, 2023
  • Number of updates: 34
  • Update frequency: every 38.6 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,207 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.90ms] Passed 4 tests

A check of server-side resources used by Top Bar Links, add custom links to the admin top bar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.61 ▼12.68
Dashboard /wp-admin3.35 ▲0.0153.42 ▼14.50
Posts /wp-admin/edit.php3.41 ▲0.0549.37 ▲0.67
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.48 ▼11.49
Media Library /wp-admin/upload.php3.28 ▲0.0536.95 ▼0.93
Top Bar Links /wp-admin/admin.php?page=eos_quil_settings_page3.2532.57

Server storage [IO: ▲0.04MB] [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: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Top Bar Links, add custom links to the admin top bar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.05 ▼0.231.79 ▼0.9343.58 ▲0.15
Dashboard /wp-admin2,224 ▲505.57 ▼0.0984.00 ▼7.7640.65 ▼3.64
Posts /wp-admin/edit.php2,135 ▲351.96 ▼0.0642.75 ▲4.7635.64 ▲0.50
Add New Post /wp-admin/post-new.php1,548 ▲2222.91 ▼0.27662.18 ▲10.1051.69 ▲0.32
Media Library /wp-admin/upload.php1,426 ▲264.19 ▲0.09103.86 ▼6.8548.25 ▲2.25
Top Bar Links /wp-admin/admin.php?page=eos_quil_settings_page8992.0225.2424.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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("buymeacoffee.com/josem")
Please take inspiration from this readme.txt

top-bar-links/top-bar-links.php 92% from 13 tests

"Top Bar Links, add custom links to the admin top bar" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin419 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP61448352
JavaScript10052
CSS10015

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 files were detected