84% osomblocks

Code Review | Osom Blocks - Gutenberg Blocks Collection

WordPress plugin Osom Blocks - Gutenberg Blocks Collection scored84%from 54 tests.

About plugin

  • Plugin page: osomblocks
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Oct 4, 2020
  • Latest release: Aug 15, 2023
  • Number of updates: 29
  • Update frequency: every 36.1 days
  • Top authors: osompress (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /2,564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.23MB] [CPU: ▼15.46ms] Passed 4 tests

This is a short check of server-side resources used by Osom Blocks - Gutenberg Blocks Collection
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.66 ▼1.45
Dashboard /wp-admin3.35 ▲0.0149.33 ▼13.31
Posts /wp-admin/edit.php3.40 ▲0.0546.82 ▼3.27
Add New Post /wp-admin/post-new.php4.87 ▼1.0254.13 ▼43.81
Media Library /wp-admin/upload.php3.28 ▲0.0536.60 ▲0.68

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Osom Blocks - Gutenberg Blocks Collection
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.16 ▼1.221.76 ▲0.0342.34 ▼1.57
Dashboard /wp-admin2,221 ▲245.85 ▲0.0498.06 ▼5.0440.96 ▼1.42
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0535.48 ▼5.2138.38 ▲0.54
Add New Post /wp-admin/post-new.php6,194 ▲4,66126.06 ▲3.02906.63 ▲264.0753.09 ▼0.77
Media Library /wp-admin/upload.php1,403 ▲64.15 ▼0.0497.45 ▼8.5647.51 ▲2.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function osom\\Osom_Blocks\\add_action() in wp-content/plugins/osomblocks/lib/meta-boxes.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/osomblocks/blocks/cpt-list/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function osom\\Osom_Blocks\\add_action() in wp-content/plugins/osomblocks/lib/enqueue-scripts.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: gutenberg blocks, blocks, editor, page building, block enabled...

osomblocks/osomblocks.php Passed 13 tests

The main PHP script in "Osom Blocks - Gutenberg Blocks Collection" version 1.2.1 is automatically included on every request by WordPress
47 characters long description:
Gutenberg Block collection for OsomPress themes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected9,085 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JSON4008,228
JavaScript75237385
PHP45488275
Sass1520137
PO File1202553
CSS2437

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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
Namespaces1
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%
Functions10
▷ Named functions10100.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
No PNG images were found in this plugin