84% styble

Code Review | Styble – Gutenberg Blocks Plugin for WordPress Page Builder Gutenberg Editor

WordPress plugin Styble – Gutenberg Blocks Plugin for WordPress Page Builder Gutenberg Editor scored84%from 54 tests.

About plugin

  • Plugin page: styble
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Sep 28, 2023
  • Latest release: Dec 1, 2023
  • Number of updates: 8
  • Update frequency: every 9.0 days
  • Top authors: rubel_miah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /496 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.90MB] [CPU: ▼5.81ms] Passed 4 tests

This is a short check of server-side resources used by Styble – Gutenberg Blocks Plugin for WordPress Page Builder Gutenberg Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.42 ▲0.9641.86 ▲0.20
Dashboard /wp-admin4.20 ▲0.8549.58 ▼17.09
Posts /wp-admin/edit.php4.25 ▲0.8950.05 ▲3.56
Add New Post /wp-admin/post-new.php7.24 ▲1.3688.23 ▼9.89
Media Library /wp-admin/upload.php4.12 ▲0.8941.71 ▲7.03

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Styble – Gutenberg Blocks Plugin for WordPress Page Builder Gutenberg Editor: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8714.54 ▲0.201.89 ▲0.2442.64 ▼0.46
Dashboard /wp-admin2,195 ▲185.68 ▲0.0393.42 ▼2.7943.51 ▼1.71
Posts /wp-admin/edit.php2,100 ▼01.96 ▲0.0232.14 ▼4.0234.61 ▼1.98
Add New Post /wp-admin/post-new.php6,310 ▲4,77520.16 ▼5.111,039.28 ▲397.7142.93 ▼37.79
Media Library /wp-admin/upload.php1,397 ▲34.24 ▲0.08100.64 ▲4.3941.67 ▼0.09

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 were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/styble/includes/updates/update-1.0.0.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: page builder, gutenberg, gutenberg blocks, blocks, block

styble/styble.php 92% from 13 tests

The entry point to "Styble – Gutenberg Blocks Plugin for WordPress Page Builder Gutenberg Editor" version 1.2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

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 detected10,932 lines of code in 83 files:
LanguageFilesBlank linesComment linesLines of code
JSON13006,747
JavaScript195379203,137
PHP19120283536
CSS326199512

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity37.50
▷ Minimum class complexity8.00
▷ Maximum class complexity106.00
Average method complexity6.26
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods28
▷ Static methods725.00%
▷ Public methods2796.43%
▷ Protected methods00.00%
▷ Private methods13.57%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected