93% fix-gutenberg-style

Code Review | Fix Gutenberg Style

WordPress plugin Fix Gutenberg Stylescored 93% from 54 tests.

About plugin

  • Plugin page: fix-gutenberg-style
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Oct 20, 2020
  • Latest release: Nov 24, 2020
  • Number of updates: 6
  • Update frequency: every 5.8 days
  • Top authors: 1wdtv (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 189 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼141.24ms] Passed 4 tests

An overview of server-side resources used by Fix Gutenberg Style
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1231.64 ▲6.31
Dashboard /wp-admin3.06 ▲0.0143.56 ▼1.32
Posts /wp-admin/edit.php3.11 ▲0.0144.67 ▲5.39
Add New Post /wp-admin/post-new.php5.42 ▼0.0180.50 ▼564.03
Media Library /wp-admin/upload.php3.00 ▲0.0032.21 ▼5.01

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fix Gutenberg Style
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,682 ▲8616.27 ▲0.738.38 ▼0.2648.92 ▼1.36
Dashboard /wp-admin2,973 ▲396.09 ▼0.06145.99 ▲3.59117.97 ▲1.26
Posts /wp-admin/edit.php2,739 ▲32.71 ▼0.0059.78 ▼9.9492.88 ▲1.70
Add New Post /wp-admin/post-new.php1,675 ▲6018.63 ▼3.27364.88 ▲81.73109.20 ▲2.31
Media Library /wp-admin/upload.php1,813 ▲65.01 ▼0.05145.31 ▼2.55125.32 ▲9.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fix-gutenberg-style/fix-gutenbrg-style.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === Fix Gutenberg Style=== )
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

fix-gutenberg-style/fix-gutenbrg-style.php 85% from 13 tests

The entry point to "Fix Gutenberg Style" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fix-gutenberg-style.php" instead of "fix-gutenbrg-style.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191035

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin