10% frontrom

Code Review | Gutenberg Themes - Ultimate Solution for Block Templates

WordPress plugin Gutenberg Themes - Ultimate Solution for Block Templates scored10%from 54 tests.

About plugin

  • Plugin page: frontrom
  • Plugin version: 0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2019
  • Latest release: Nov 29, 2020
  • Number of updates: 61
  • Update frequency: every 6.3 days
  • Top authors: helloworldwhoami (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /2,596 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/frontrom/vendor/composer/ClassLoader.php+444
    include(wp-content/plugins/frontrom/vendor/composer/../../includes/Upgrades/Upgrade.php): failed to open stream: No such file or directory

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

Analyzing server-side resources used by Gutenberg Themes - Ultimate Solution for Block Templates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.18 ▲3.20
Dashboard /wp-admin3.31 ▲0.0047.93 ▼3.99
Posts /wp-admin/edit.php3.36 ▲0.0048.28 ▼5.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.27 ▼11.80
Media Library /wp-admin/upload.php3.23 ▲0.0037.31 ▲0.23

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 193 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gutenberg Themes - Ultimate Solution for Block Templates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.76 ▲0.111.70 ▲0.0943.57 ▼1.33
Dashboard /wp-admin2,195 ▲155.64 ▼0.0283.84 ▼2.9842.56 ▼5.14
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0234.84 ▼5.6933.59 ▼4.27
Add New Post /wp-admin/post-new.php1,528 ▲223.19 ▲0.08655.03 ▼62.7763.90 ▲10.77
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0297.85 ▼2.3247.82 ▲4.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/frontrom/templates/admin-js-template.php
    • > /wp-content/plugins/frontrom/templates/index.php
  • 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/frontrom/frontrom.php:91
    • > PHP Fatal error
      Uncaught Error: Call to undefined function frontrom_is_self_page() in wp-content/plugins/frontrom/templates/themes/frontrom/template-parts/footer-menus-widgets.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/frontrom/templates/themes/frontrom/default-404.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function frontrom_is_self_page() in wp-content/plugins/frontrom/templates/themes/frontrom/footer.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_posts_pagination() in wp-content/plugins/frontrom/templates/themes/frontrom/template-parts/pagination.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/frontrom/templates/themes/frontrom/header.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function frontrom_is_self_page() in wp-content/plugins/frontrom/templates/themes/frontrom/template-parts/entry-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function includes_url() in wp-content/plugins/frontrom/templates/edit.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/frontrom/templates/themes/frontrom/commentsssss.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/frontrom/templates/themes/frontrom/default-404.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #1, #10, #11, #12, #13, #2, #3, #4, #5, #6, #7, #8, #9 in frontrom/assets to your readme.txt
The official readme.txt is a good inspiration

frontrom/frontrom.php Passed 13 tests

The main file in "Gutenberg Themes - Ultimate Solution for Block Templates" v. 0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
45 characters long description:
Do everythings like Gutenberg, from frontend.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin53,278 lines of code in 126 files:
LanguageFilesBlank linesComment linesLines of code
CSS292,3961,08031,520
Sass191311,366
PHP531,8091,1025,461
JavaScript319774,1573,125
HTML104961,5401,800
JSON1005
SVG1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.62
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes13.45%
Methods285
▷ Static methods6823.86%
▷ Public methods25790.18%
▷ Protected methods10.35%
▷ Private methods279.47%
Functions101
▷ Named functions7574.26%
▷ Anonymous functions2625.74%
Constants16
▷ Global constants16100.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
32 PNG files occupy 0.28MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/plumber/img/favicon.png1.73KB1.09KB▼ 36.98%
assets/images/carousel/brand-3.png1.50KB1.55KB0.00%
assets/plumber/img/home-work-2.png22.55KB23.93KB0.00%
assets/plumber/img/logo3.png3.92KB2.63KB▼ 32.98%
assets/plumber/img/logo-light.png3.72KB2.51KB▼ 32.45%