89% quick-bar

Code Review | Quick Bar - Popup Notification Sidebar

WordPress plugin Quick Bar - Popup Notification Sidebar scored 89% from 54 tests.

About plugin

  • Plugin page: quick-bar
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.9.4
  • WordPress version: 6.3.1
  • First release: Sep 13, 2012
  • Latest release: Jul 2, 2018
  • Number of updates: 27
  • Update frequency: every 78.6 days
  • Top authors: f1logic (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active / 17,688 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.95ms] Passed 4 tests

An overview of server-side resources used by Quick Bar - Popup Notification Sidebar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1535.45 ▼9.17
Dashboard /wp-admin3.48 ▲0.1756.51 ▲2.76
Posts /wp-admin/edit.php3.57 ▲0.2153.51 ▲1.91
Add New Post /wp-admin/post-new.php6.19 ▲0.2991.78 ▼11.29
Media Library /wp-admin/upload.php3.41 ▲0.1843.98 ▲4.01
Quick Bar /wp-admin/admin.php?page=quickbar-settings3.4840.69
Basic Settings /wp-admin/admin.php?page=quickbar-basic-settings3.3538.78
About /wp-admin/admin.php?page=quickbar-about3.4038.27

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 40 new options
New WordPress options
xyz_qbr_free_version
xyz_qbr_width_dim
xyz_qbr_display_position
widget_recent-posts
xyz_credit_link
xyz_qbr_border_color
xyz_qbr_corner_radius
xyz_qbr_html
xyz_qbr_mode
qbar_installed_date
...

Browser metrics Passed 4 tests

Checking browser requirements for Quick Bar - Popup Notification Sidebar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲16114.17 ▲0.918.77 ▲6.7042.40 ▼4.00
Dashboard /wp-admin2,228 ▲224.97 ▼0.94103.26 ▲6.6788.83 ▲49.28
Posts /wp-admin/edit.php2,126 ▲372.03 ▲0.0434.19 ▼2.5932.53 ▼0.99
Add New Post /wp-admin/post-new.php1,575 ▲3824.06 ▲1.01791.81 ▲188.1654.68 ▼10.29
Media Library /wp-admin/upload.php1,425 ▲374.14 ▼0.06106.61 ▲2.2079.05 ▲37.05
Quick Bar /wp-admin/admin.php?page=quickbar-settings2,6727.02156.37153.68
Basic Settings /wp-admin/admin.php?page=quickbar-basic-settings1,2491.7526.9645.19
About /wp-admin/admin.php?page=quickbar-about1,7771.8625.2663.82

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
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • xyz_qbr_free_version
    • xyz_credit_link
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

quick-bar/quick-bar.php 92% from 13 tests

The principal PHP file in "Quick Bar - Popup Notification Sidebar" v. 1.2.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 435 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,171 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP16342571,692
CSS11053441
JavaScript210138

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
17 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/linkedin.png0.87KB0.87KB0.00%
images/close.png1.95KB1.43KB▼ 26.85%
images/facebook.png0.65KB0.65KB▼ 0.75%
images/orange_buynow.png5.08KB2.84KB▼ 44.03%
images/gplus.png1.06KB0.91KB▼ 13.85%