84% gboost

Code Review | GBoost

WordPress plugin GBoost scored84%from 54 tests.

About plugin

  • Plugin page: gboost
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 6.3.1
  • First release: Oct 3, 2020
  • Latest release: Mar 12, 2021
  • Number of updates: 3
  • Update frequency: every 53.7 days
  • Top authors: wpthemespace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼14.35ms] Passed 4 tests

Server-side resources used by GBoost
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0633.72 ▼13.32
Dashboard /wp-admin3.36 ▲0.0142.78 ▼18.52
Posts /wp-admin/edit.php3.41 ▲0.0543.04 ▼7.07
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.10 ▼18.47
Media Library /wp-admin/upload.php3.28 ▲0.0537.71 ▲2.32
Add New portfolio /wp-admin/post-new.php?post_type=gboost-portfolio3.4044.28
All portfolio /wp-admin/edit.php?post_type=gboost-portfolio3.3333.33

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for GBoost
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.18 ▼1.173.93 ▲2.3437.18 ▼3.83
Dashboard /wp-admin2,230 ▲425.84 ▼0.0996.13 ▼5.9835.56 ▼9.16
Posts /wp-admin/edit.php2,119 ▲301.99 ▼0.0139.43 ▼0.1235.57 ▲0.08
Add New Post /wp-admin/post-new.php1,565 ▲3718.37 ▲0.25595.28 ▼44.6651.43 ▲2.91
Media Library /wp-admin/upload.php1,415 ▲244.18 ▼0.0696.67 ▼2.4942.43 ▼4.93
Add New portfolio /wp-admin/post-new.php?post_type=gboost-portfolio2,1667.52181.4765.36
All portfolio /wp-admin/edit.php?post_type=gboost-portfolio1,0861.9933.0330.45

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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

SRP 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gboost/includes/shortcode.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gboost/includes/protfolio-post.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (GBoost backend editor.), #2 (GBoost front display .)
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

gboost/gboost.php Passed 13 tests

The primary PHP file in "GBoost" version 1.0.1 is used by WordPress to initiate all plugin functionality
28 characters long description:
Helper plugin for Gute theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected197 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP353124147
CSS19550

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected