83% fix-gutenberg-style

Code Review | Fix Gutenberg Style

WordPress plugin Fix Gutenberg Stylescored83%from 54 tests.

About plugin

  • Plugin page: fix-gutenberg-style
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 20, 2020
  • Latest release: May 7, 2022
  • Number of updates: 11
  • Update frequency: every 51.3 days
  • Top authors: 1wdtv (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /574 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.26ms] Passed 4 tests

An overview of server-side resources used by Fix Gutenberg Style
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.31 ▲2.18
Dashboard /wp-admin3.31 ▼0.0445.48 ▼9.85
Posts /wp-admin/edit.php3.36 ▲0.0044.84 ▲1.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.63 ▼20.21
Media Library /wp-admin/upload.php3.23 ▲0.0035.93 ▼0.05

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, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

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 /2,792 ▲4614.28 ▼0.071.73 ▲0.0540.80 ▼2.01
Dashboard /wp-admin2,198 ▲235.54 ▼0.1084.63 ▼16.8040.77 ▲1.89
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0334.87 ▼7.7435.59 ▲3.15
Add New Post /wp-admin/post-new.php1,529 ▲323.28 ▼0.49675.10 ▼26.4951.39 ▼1.52
Media Library /wp-admin/upload.php1,400 ▼04.13 ▼0.0293.21 ▼20.2341.16 ▼7.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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 | 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.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • 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")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 detected46 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121046

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