90% plugins-admin-bar

Code Review | Plugins Admin Bar - WordPress Plugin Adding Plugin Link To WP Admin Bar Sub Menu

WordPress plugin Plugins Admin Bar - WordPress Plugin Adding Plugin Link To WP Admin Bar Sub Menu scored 90% from 54 tests.

About plugin

  • Plugin page: plugins-admin-bar
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Apr 17, 2017
  • Latest release: Dec 16, 2017
  • Number of updates: 9
  • Update frequency: every 27.0 days
  • Top authors: GeekStreetWP (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,441 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.30ms] Passed 4 tests

This is a short check of server-side resources used by Plugins Admin Bar - WordPress Plugin Adding Plugin Link To WP Admin Bar Sub Menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0845.37 ▼1.77
Dashboard /wp-admin3.36 ▲0.0551.86 ▼3.81
Posts /wp-admin/edit.php3.41 ▲0.0555.01 ▲3.38
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.69 ▼6.98
Media Library /wp-admin/upload.php3.28 ▲0.0541.60 ▲6.28

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugins Admin Bar - WordPress Plugin Adding Plugin Link To WP Admin Bar Sub Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲8413.26 ▼0.052.04 ▲0.1848.54 ▲2.20
Dashboard /wp-admin2,227 ▲185.89 ▼0.03111.04 ▲10.6942.78 ▲3.38
Posts /wp-admin/edit.php2,107 ▲182.06 ▲0.0938.29 ▲1.0636.60 ▲2.89
Add New Post /wp-admin/post-new.php1,551 ▲3423.04 ▲5.38605.27 ▼64.7253.26 ▼0.13
Media Library /wp-admin/upload.php1,409 ▲184.24 ▲0.0499.47 ▼7.0142.05 ▼0.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: wp-admin-bar, plugins, admin, plugin

plugins-admin-bar/plugins-admin-bar.php 92% from 13 tests

This is the main PHP file of "Plugins Admin Bar - WordPress Plugin Adding Plugin Link To WP Admin Bar Sub Menu" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Git Repository: Please do not include Git repositories in your plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin287 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11250287

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected