90% woocommerce-count-orders-in-adminbar

Code Review | WooCommerce Pending Orders in AdminBar

WordPress plugin WooCommerce Pending Orders in AdminBar scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-count...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Apr 30, 2015
  • Latest release: Jun 29, 2015
  • Number of updates: 34
  • Update frequency: every 3.4 days
  • Top authors: nipoto (88.24%)Otto42 (14.71%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,056 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.78ms] Passed 4 tests

Server-side resources used by WooCommerce Pending Orders in AdminBar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0144.84 ▲0.92
Dashboard /wp-admin3.35 ▼0.0353.62 ▼8.34
Posts /wp-admin/edit.php3.40 ▲0.0148.93 ▼4.94
Add New Post /wp-admin/post-new.php5.93 ▲0.0186.36 ▼22.75
Media Library /wp-admin/upload.php3.28 ▲0.0139.82 ▲5.91

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Pending Orders in AdminBar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.192.03 ▼0.0443.95 ▼1.54
Dashboard /wp-admin2,195 ▲215.51 ▼0.0685.90 ▼0.5142.92 ▼0.80
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0238.30 ▲0.0536.73 ▼3.15
Add New Post /wp-admin/post-new.php1,541 ▲1523.27 ▲0.14670.68 ▲57.2658.70 ▲0.95
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.06104.36 ▼1.0947.98 ▲2.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: woocommerce, wordpress, woocommerce adminbar, wordpress adminbar, orders count...

woocommerce-count-orders-in-adminbar/index.php 92% from 13 tests

This is the main PHP file of "WooCommerce Pending Orders in AdminBar" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-count-orders-in-adminbar.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17832

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions2
▷ Named functions2100.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 are no PNG files in this plugin