94% admin-bar-plugin-shortcut

Code Review | Admin bar Plugin Shortcut

WordPress plugin Admin bar Plugin Shortcut scored 94% from 54 tests.

About plugin

  • Plugin page: admin-bar-plugin-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 5.9.2
  • First release: Jul 22, 2015
  • Latest release: Jul 22, 2015
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: rakshithvbharani@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 816 total downloads


Plugin footprint Passed 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.02MB] [CPU: ▼298.35ms] Passed 4 tests

Server-side resources used by Admin bar Plugin Shortcut
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0162.37 ▲6.48
Dashboard /wp-admin3.41 ▲0.0133.03 ▼0.60
Posts /wp-admin/edit.php3.65 ▲0.0140.49 ▲0.64
Add New Post /wp-admin/post-new.php6.88 ▼0.0997.74 ▼1,175.24
Media Library /wp-admin/upload.php3.30 ▲0.0025.12 ▼18.20

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Admin bar Plugin Shortcut
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,775 ▲2116.19 ▲1.126.39 ▲0.272.46 ▼0.80
Dashboard /wp-admin2,903 ▲456.14 ▼0.03155.29 ▲18.42160.98 ▼63.97
Posts /wp-admin/edit.php2,695 ▲43.23 ▼0.0269.16 ▼3.22181.95 ▲37.62
Add New Post /wp-admin/post-new.php1,782 ▲6321.45 ▼1.15484.64 ▲49.48166.49 ▲1.14
Media Library /wp-admin/upload.php1,702 ▲45.51 ▼0.00171.96 ▲27.01188.69 ▼2.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-bar-plugin-shortcut/admin-bar-plugin-shortcut.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Drop-down Menu along with new integration to install plugins), #2 (After clicking it takes to the install page.)
The official readme.txt is a good inspiration

admin-bar-plugin-shortcut/admin-bar-plugin-shortcut.php Passed 13 tests

"Admin bar Plugin Shortcut" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
51 characters long description:
Adds a shortcut to install plugin in the admin bar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.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
There were not PNG files found in your plugin