90% enable-gutenberg-theme-support

Code Review | Enable Gutenberg Theme Support

WordPress plugin Enable Gutenberg Theme Support scored90%from 54 tests.

About plugin

  • Plugin page: enable-gutenberg-...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.1
  • WordPress version: 6.3.1
  • First release: Aug 24, 2018
  • Latest release: Dec 13, 2018
  • Number of updates: 16
  • Update frequency: every 6.9 days
  • Top authors: iescuer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,039 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.94ms] Passed 4 tests

A check of server-side resources used by Enable Gutenberg Theme Support
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.07 ▼0.69
Dashboard /wp-admin3.38 ▲0.0848.10 ▼5.52
Posts /wp-admin/edit.php3.43 ▲0.0851.07 ▲2.31
Add New Post /wp-admin/post-new.php5.98 ▲0.1090.83 ▼15.07
Media Library /wp-admin/upload.php3.31 ▲0.0838.27 ▼2.46

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 18 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
egts_option_xs_size
egts_select_unit_font_size
widget_theysaidso_widget
egts_option_xl_size
egts_option_l_size
db_upgraded
widget_recent-posts
egts_max-width-gutenberg-editor-page
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Enable Gutenberg Theme Support
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲10113.32 ▼1.071.96 ▲0.0741.97 ▼3.44
Dashboard /wp-admin2,258 ▲585.10 ▲0.19109.91 ▲3.3637.13 ▼11.61
Posts /wp-admin/edit.php2,145 ▲452.28 ▲0.2742.09 ▲3.2234.92 ▼0.69
Add New Post /wp-admin/post-new.php1,558 ▲1317.79 ▼5.24685.30 ▲37.0137.19 ▼19.43
Media Library /wp-admin/upload.php1,443 ▲434.58 ▲0.32103.40 ▼6.3345.28 ▼1.21

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 did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • egts_select_unit_font_size
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: The official readme.txt is a good inspiration

enable-gutenberg-theme-support/enable-gutenberg-theme-support.php Passed 13 tests

The main PHP script in "Enable Gutenberg Theme Support" version 1.2 is automatically included on every request by WordPress
76 characters long description:
This plugin enable gutenberg theme support features to your WordPress theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin305 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP78149291
JavaScript25812
CSS1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin