88% manager-for-gutenberg

Code Review | Gutenberg Manager

WordPress plugin Gutenberg Manager scored 88% from 54 tests.

About plugin

  • Plugin page: manager-for-guten...
  • Plugin version: 1.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.0.3
  • WordPress version: 5.9.2
  • First release: Feb 23, 2018
  • Latest release: Jan 12, 2019
  • Number of updates: 13
  • Update frequency: every 25.0 days
  • Top authors: unCommons (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active / 10,141 total downloads

Benchmarks

Plugin footprint Passed 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.07MB] [CPU: ▼305.13ms] Passed 4 tests

Server-side resources used by Gutenberg Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.1882.27 ▲23.04
Dashboard /wp-admin3.61 ▲0.2036.71 ▲4.85
Posts /wp-admin/edit.php3.83 ▲0.1947.19 ▲10.43
Add New Post /wp-admin/post-new.php6.14 ▼0.8368.67 ▼1,230.17
Media Library /wp-admin/upload.php3.49 ▲0.1924.87 ▼5.63
Gutenberg Manager /wp-admin/options-general.php?page=gutenberg-manager3.4624.80

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Gutenberg Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,809 ▲5516.25 ▲0.605.92 ▼1.102.57 ▼0.11
Dashboard /wp-admin2,906 ▲516.50 ▲0.36126.17 ▼15.52159.22 ▼2.32
Posts /wp-admin/edit.php2,699 ▲112.98 ▼0.2574.60 ▲5.66142.67 ▼71.67
Add New Post /wp-admin/post-new.php1,671 ▼10816.14 ▼5.97409.24 ▼57.36230.63 ▲7.44
Media Library /wp-admin/upload.php1,713 ▲155.74 ▲0.22161.96 ▲11.49252.40 ▲61.92
Gutenberg Manager /wp-admin/options-general.php?page=gutenberg-manager1,4452.8257.00163.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
Please fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/manager-for-gutenberg/inc/core.php
    • > /wp-content/plugins/manager-for-gutenberg/inc/hooks.php
    • > /wp-content/plugins/manager-for-gutenberg/inc/options.php
    • > /wp-content/plugins/manager-for-gutenberg/gutenberg-manager.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/manager-for-gutenberg/inc/default-blocks.php:7

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 90% 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
8 plugin tags: post type, wp5, disable gutenberg, disable, manager...

manager-for-gutenberg/gutenberg-manager.php 77% from 13 tests

The principal PHP file in "Gutenberg Manager" v. 1.5 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 171 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("manager-for-gutenberg.php" instead of "gutenberg-manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,230 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP732694783
CSS28722389
JavaScript2171258

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wp-icon.png1.41KB0.75KB▼ 46.91%
assets/images/github-icon.png1.88KB0.76KB▼ 59.50%