84% booster-pack-for-gutenberg

Code Review | Booster Pack for Gutenberg

WordPress plugin Booster Pack for Gutenberg scored84%from 54 tests.

About plugin

  • Plugin page: booster-pack-for-...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 2, 2018
  • Latest release: Jul 3, 2018
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: webtechstreet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /692 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.06ms] Passed 4 tests

Analyzing server-side resources used by Booster Pack for Gutenberg
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.77 ▼2.72
Dashboard /wp-admin3.32 ▲0.0149.17 ▼1.13
Posts /wp-admin/edit.php3.37 ▲0.0144.62 ▼1.99
Add New Post /wp-admin/post-new.php7.17 ▲1.2897.19 ▲6.22
Media Library /wp-admin/upload.php3.24 ▲0.0135.35 ▲1.61

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Booster Pack for Gutenberg: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲18322.09 ▲7.43169.21 ▲167.2935.40 ▼8.01
Dashboard /wp-admin2,206 ▲155.84 ▲0.96102.07 ▼3.8042.77 ▼3.13
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0634.44 ▼6.7934.97 ▼5.00
Add New Post /wp-admin/post-new.php6,352 ▲4,81228.02 ▲4.97912.30 ▲242.5138.79 ▼18.34
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0396.17 ▼1.7742.99 ▲1.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BP_GB\\add_action() in wp-content/plugins/booster-pack-for-gutenberg/bootstrap.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/booster-pack-for-gutenberg/init.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: progressbar, gutenberg, editor

booster-pack-for-gutenberg/init.php 85% from 13 tests

"Booster Pack for Gutenberg" version 0.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("booster-pack-for-gutenberg.php" instead of "init.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,075 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21911381,023
PHP2191249
CSS1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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