90% wphobby-blocks

Code Review | WPHobby Blocks for Gutenberg

WordPress plugin WPHobby Blocks for Gutenberg scored90%from 54 tests.

About plugin

  • Plugin page: wphobby-blocks
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 3, 2020
  • Latest release: Apr 17, 2020
  • Number of updates: 5
  • Update frequency: every 52.6 days
  • Top authors: darell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /388 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by WPHobby Blocks for Gutenberg
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.85 ▼2.32
Dashboard /wp-admin3.31 ▼0.0351.38 ▼17.31
Posts /wp-admin/edit.php3.36 ▲0.0142.11 ▼6.62
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.11 ▼16.61
Media Library /wp-admin/upload.php3.23 ▲0.0141.31 ▲6.93

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WPHobby Blocks for Gutenberg
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲18613.64 ▼0.7110.45 ▲8.6139.27 ▼4.73
Dashboard /wp-admin2,209 ▲185.90 ▲0.02101.18 ▼3.6341.24 ▼1.88
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0334.54 ▲0.4132.70 ▼5.03
Add New Post /wp-admin/post-new.php6,358 ▲4,82527.85 ▲4.42948.08 ▲285.7741.88 ▼19.39
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0197.57 ▼7.2547.91 ▲2.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: editor, blocks, gutenberg, gutenberg blocks

wphobby-blocks/wphobby-blocks.php Passed 13 tests

The principal PHP file in "WPHobby Blocks for Gutenberg" v. 1.0.0 is loaded by WordPress automatically on each request
49 characters long description:
Register WPHobby Blocks for the Gutenberg editor.

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
Good job! No executable or dangerous file extensions detected895 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript64693512
PHP33474184
CSS278112
Sass48087

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin