100% admin-bar-addition-for-woocommerce

Code Review | Admin Bar Addition for WooCommerce

WordPress plugin Admin Bar Addition for WooCommerce scored 100% from 54 tests.

About plugin

  • Plugin page: admin-bar-additio...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3
  • WordPress version: 5.9.2
  • First release: Jun 29, 2017
  • Latest release: Jan 3, 2020
  • Number of updates: 9
  • Update frequency: every 102.1 days
  • Top authors: algoritmika (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 755 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Admin Bar Addition for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0255.93 ▲5.34
Dashboard /wp-admin3.42 ▲0.0134.74 ▲2.74
Posts /wp-admin/edit.php3.65 ▲0.0137.60 ▲1.10
Add New Post /wp-admin/post-new.php6.89 ▼0.0891.24 ▼1,192.56
Media Library /wp-admin/upload.php3.30 ▲0.0123.36 ▼0.19

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Bar Addition for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.86 ▲0.085.70 ▼0.202.45 ▲0.05
Dashboard /wp-admin2,895 ▲376.20 ▼0.07118.81 ▼30.20159.16 ▼5.08
Posts /wp-admin/edit.php2,685 ▼33.23 ▲0.0062.07 ▼2.04141.41 ▲4.73
Add New Post /wp-admin/post-new.php1,660 ▼716.06 ▼3.24405.76 ▲22.43153.61 ▼7.81
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.01151.48 ▲9.97192.50 ▲6.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
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 a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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: admin bar, adminbar, admin bar addition, woocommerce

admin-bar-addition-for-woocommerce/admin-bar-addition-for-woocommerce.php Passed 13 tests

The main file in "Admin Bar Addition for WooCommerce" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
35 characters long description:
Admin bar addition for WooCommerce.

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
Everything looks great! No dangerous files found in this plugin375 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP229128375

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin