94% add-toolbar-content-links

Code Review | Admin Toolbar Content Links

WordPress plugin Admin Toolbar Content Links scored 94% from 54 tests.

About plugin

  • Plugin page: add-toolbar-conte...
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 5.9.2
  • First release: Jan 8, 2014
  • Latest release: Jul 14, 2021
  • Number of updates: 27
  • Update frequency: every 101.6 days
  • Top authors: circlecube (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,771 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by Admin Toolbar Content Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0452.42 ▲1.01
Dashboard /wp-admin3.45 ▲0.0432.09 ▼1.53
Posts /wp-admin/edit.php3.67 ▲0.0334.44 ▼3.33
Add New Post /wp-admin/post-new.php6.91 ▼0.0697.60 ▼1,294.56
Media Library /wp-admin/upload.php3.33 ▲0.0324.50 ▲0.09

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Toolbar Content Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,843 ▲8915.93 ▼0.055.74 ▼0.272.29 ▼0.43
Dashboard /wp-admin2,933 ▲726.13 ▼0.07120.04 ▼17.22156.70 ▼12.58
Posts /wp-admin/edit.php2,735 ▲413.24 ▲0.0063.12 ▼1.62137.88 ▼4.68
Add New Post /wp-admin/post-new.php1,712 ▼4018.45 ▼3.18435.48 ▼15.86153.90 ▼5.89
Media Library /wp-admin/upload.php1,739 ▲385.48 ▼0.04144.50 ▲10.46184.11 ▲5.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-toolbar-content-links/add-toolbar-content-links.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 93% 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:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === add-toolbar-content-links === )
The official readme.txt is a good inspiration

add-toolbar-content-links/add-toolbar-content-links.php 92% from 13 tests

The entry point to "Admin Toolbar Content Links" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.3" instead of "5.2")

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
There were no executable files found in this plugin153 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of 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.21
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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 files were detected