74% quickiebar

Code Review | QuickieBar

WordPress plugin QuickieBar scored74%from 54 tests.

About plugin

  • Plugin page: quickiebar
  • Plugin version: 1.8.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.6.1
  • WordPress version: 6.3.1
  • First release: Feb 9, 2015
  • Latest release: Sep 20, 2016
  • Number of updates: 70
  • Update frequency: every 8.5 days
  • Top authors: philbaylog (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /27,740 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.79ms] Passed 4 tests

An overview of server-side resources used by QuickieBar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0029.27 ▼15.07
Dashboard /wp-admin3.40 ▲0.0555.09 ▼13.00
Posts /wp-admin/edit.php3.51 ▲0.1553.41 ▲4.20
Add New Post /wp-admin/post-new.php6.00 ▲0.1297.38 ▼3.27
Media Library /wp-admin/upload.php3.32 ▲0.0940.04 ▲6.06

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 56 new files
Database: 3 new tables, 23 new options
New tables
wp_qb_views
wp_qb_bars
wp_qb_conversions
New WordPress options
qb_custom_post_type_visibility
widget_recent-posts
qb_category_exceptions
qb_device_visibility
qb_fixed_compatibility
qb_archive_page_visibility
qb_attribution
widget_recent-comments
qb_page_visibility
qb_category_visibility
...

Browser metrics Passed 4 tests

Checking browser requirements for QuickieBar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.59 ▼0.7212.51 ▲10.7843.01 ▼0.65
Dashboard /wp-admin2,210 ▲365.73 ▲0.1498.81 ▲9.7178.44 ▲35.12
Posts /wp-admin/edit.php2,130 ▲302.27 ▲0.2333.38 ▼7.6033.42 ▼6.85
Add New Post /wp-admin/post-new.php1,635 ▲10423.66 ▲0.59740.99 ▲29.1337.86 ▼15.06
Media Library /wp-admin/upload.php1,430 ▲304.35 ▲0.13109.36 ▼14.8478.23 ▲28.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables detected upon uninstall: 3 tables
    • wp_qb_bars
    • wp_qb_views
    • wp_qb_conversions
  • This plugin does not fully uninstall, leaving 23 options in the database
    • qb_page_exceptions
    • theysaidso_admin_options
    • qb_post_visibility
    • qb_category_exceptions
    • qb_visibility
    • qb_post_exceptions
    • db_upgraded
    • widget_recent-comments
    • qb_bar_zindex
    • qb_attribution
    • ...

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quickiebar/admin/controllers/help.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quickiebar/admin/ajax/qb-ajax-handler.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quickiebar/admin/controllers/conversions.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quickiebar/admin/controllers/setup.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quickiebar/admin/controllers/settings.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quickiebar/admin/controllers/bars.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

quickiebar/quickiebar.php 92% from 13 tests

The principal PHP file in "QuickieBar" v. 1.8.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 150 characters long)

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 plugin9,295 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
CSS4321653,034
JavaScript115312692,453
LESS195371082,223
PHP7311192943
HTML511866583
Markdown16059

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity20.57
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods59
▷ Static methods2644.07%
▷ Public methods5796.61%
▷ Protected methods00.00%
▷ Private methods23.39%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/menu-icon.png1.19KB0.64KB▼ 46.26%
public/images/qb-attribution-light.png0.37KB0.28KB▼ 23.62%
admin/images/ads/sidebar-ad.png6.16KB2.71KB▼ 56.11%
admin/images/page-icon.png0.37KB0.30KB▼ 20.10%
admin/images/ads/sidebar-ad-2.png5.55KB2.32KB▼ 58.09%