84% guten-free-options

Code Review | Guten Free Options

WordPress plugin Guten Free Options scored 84% from 54 tests.

About plugin

  • Plugin page: guten-free-options
  • Plugin version: 0.9.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.0.2
  • WordPress version: 5.8.1
  • First release: Nov 23, 2018
  • Latest release: Dec 25, 2018
  • Number of updates: 13
  • Update frequency: every 2.5 days
  • Top authors: majick (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active / 2,710 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.23MB] [CPU: ▼150.20ms] Passed 4 tests

Server-side resources used by Guten Free Options
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.19 ▲0.3546.17 ▲15.95
Dashboard /wp-admin3.44 ▲0.3846.74 ▲1.11
Posts /wp-admin/edit.php3.53 ▲0.4245.56 ▼0.80
Add New Post /wp-admin/post-new.php3.44 ▼2.0046.78 ▼602.29
Media Library /wp-admin/upload.php3.36 ▲0.3531.65 ▲1.19
Guten Free /wp-admin/options-general.php?page=guten-free-options3.3631.87
Add New (Block) /wp-admin/post-new.php?post_type=post&editor=block5.3380.39
Add New (Block) /wp-admin/post-new.php?post_type=page&editor=block5.3173.83

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
guten_free_options

Browser metrics Passed 4 tests

Checking browser requirements for Guten Free Options
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,718 ▲12315.80 ▲0.0511.30 ▲0.9849.50 ▼0.06
Dashboard /wp-admin2,985 ▲545.92 ▼0.06137.77 ▼12.23114.24 ▼1.58
Posts /wp-admin/edit.php2,754 ▲152.72 ▲0.0166.43 ▲0.3599.57 ▲7.04
Add New Post /wp-admin/post-new.php4,289 ▲2,6068.93 ▼9.88229.16 ▼147.27164.64 ▲53.62
Media Library /wp-admin/upload.php1,822 ▲125.05 ▼0.01140.80 ▲6.25118.37 ▼1.69
Guten Free /wp-admin/options-general.php?page=guten-free-options1,6552.1357.2590.03
Add New (Block) /wp-admin/post-new.php?post_type=post&editor=block6,01623.72468.46135.23
Add New (Block) /wp-admin/post-new.php?post_type=page&editor=block6,10819.49430.10130.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • guten_free_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=page&editor=block
    • > Notice in wp-content/plugins/guten-free-options/guten-free-options.php+2267
    Undefined variable: onchange

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: block editor, gutenberg, options, classic editor

guten-free-options/guten-free-options.php Passed 13 tests

"Guten Free Options" version 0.9.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Gutenberg Free Options for your WordPressed Burger err I mean Editor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,579 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13806251,579

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions60
▷ Named functions60100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wpmedic.png4.65KB2.48KB▼ 46.68%
images/guten-free-options.png37.75KB10.10KB▼ 73.25%