84% admin-bar-plugin-shortcut

Code Review | Admin bar Plugin Shortcut

WordPress plugin Admin bar Plugin Shortcut scored84%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: 6.3.1
  • 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 /1,049 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: ▼6.49ms] Passed 4 tests

Analyzing server-side resources used by Admin bar Plugin Shortcut
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.43 ▲3.41
Dashboard /wp-admin3.31 ▲0.0145.69 ▼4.96
Posts /wp-admin/edit.php3.36 ▲0.0141.40 ▲0.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.89 ▼19.11
Media Library /wp-admin/upload.php3.23 ▲0.0032.42 ▼2.49

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Admin bar Plugin Shortcut
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.83 ▲0.461.82 ▼0.0243.21 ▼1.24
Dashboard /wp-admin2,206 ▲155.83 ▲0.99105.44 ▼10.7338.49 ▼8.40
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0636.26 ▼6.3137.04 ▲0.30
Add New Post /wp-admin/post-new.php1,517 ▲317.49 ▼0.22680.62 ▲59.3955.05 ▼2.87
Media Library /wp-admin/upload.php1,391 ▼04.15 ▼0.0094.50 ▼7.0539.51 ▼7.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 errors when accessed directly with GET requests:
    • > 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 shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Drop-down Menu along with new integration to install plugins), #2 (After clicking it takes to the install page.)
Please take inspiration from this readme.txt

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
No dangerous file extensions were detected16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14916

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin