84% gb-quick-launch

Code Review | GB Quick launch

WordPress plugin GB Quick launch scored84%from 54 tests.

About plugin

  • Plugin page: gb-quick-launch
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2023
  • Latest release: Jan 25, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: gb-plugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /396 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼2.74ms] Passed 4 tests

Server-side resources used by GB Quick launch
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1043.57 ▼8.50
Dashboard /wp-admin3.57 ▲0.2252.82 ▼3.73
Posts /wp-admin/edit.php3.68 ▲0.2856.15 ▲3.92
Add New Post /wp-admin/post-new.php6.17 ▲0.2499.53 ▲7.49
Media Library /wp-admin/upload.php3.49 ▲0.2239.88 ▼2.66
All Quick Launch /wp-admin/edit.php?post_type=gb-quick-launch3.5441.14
Add New Quick Launch Button /wp-admin/post-new.php?post_type=gb-quick-launch3.7063.16
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=gb-quick-launch3.4842.51

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

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

Browser metrics Passed 4 tests

GB Quick launch: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,972 ▲21113.45 ▼0.908.35 ▲6.6541.85 ▲2.91
Dashboard /wp-admin2,230 ▲505.68 ▲0.12105.17 ▲15.5976.37 ▲34.81
Posts /wp-admin/edit.php2,156 ▲532.04 ▲0.0840.03 ▲1.2533.18 ▼1.47
Add New Post /wp-admin/post-new.php1,569 ▲4322.96 ▼0.11667.33 ▼14.0059.00 ▲7.23
Media Library /wp-admin/upload.php1,444 ▲444.19 ▲0.03100.13 ▼16.9068.96 ▲20.14
All Quick Launch /wp-admin/edit.php?post_type=gb-quick-launch1,1681.9536.5230.03
Add New Quick Launch Button /wp-admin/post-new.php?post_type=gb-quick-launch2,9608.40201.08123.16
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=gb-quick-launch1,5082.1730.4534.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • category_children

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/gb-quick-launch/core/functions.php
    • > /wp-content/plugins/gb-quick-launch/core/class/class-frontend.php
    • > /wp-content/plugins/gb-quick-launch/gb-quick-launch.php
    • > /wp-content/plugins/gb-quick-launch/core/class/class-gbql-button.php
    • > /wp-content/plugins/gb-quick-launch/core/class/cpt-admin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: quick launch, sticky buttons, action button, social sharing, call

gb-quick-launch/gb-quick-launch.php 92% from 13 tests

The entry point to "GB Quick launch" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,988 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP51832521,176
CSS2333583
JavaScript24425229

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.74
Average class complexity86.00
▷ Minimum class complexity29.00
▷ Maximum class complexity180.00
Average method complexity6.43
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods3063.83%
▷ Protected methods00.00%
▷ Private methods1736.17%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants4
▷ Global constants4100.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
11 PNG files occupy 0.27MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/gbql-default.png2.89KB1.78KB▼ 38.34%
images/gb-quick-launch-gmail.png29.51KB12.46KB▼ 57.77%
images/gb-quick-launch-whatsapp.png33.54KB11.23KB▼ 66.52%
images/gb-quick-launch-pinterest.png34.54KB14.47KB▼ 58.09%
images/gb-quick-launch-googleplus.png24.47KB8.39KB▼ 65.72%