89% we-blocks

Code Review | WE Blocks - Image, Testimonial And Logo Slider Gutenberg Blocks

WordPress plugin WE Blocks - Image, Testimonial And Logo Slider Gutenberg Blocks scored89%from 54 tests.

About plugin

  • Plugin page: we-blocks
  • Plugin version: 1.3.4
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 4, 2019
  • Latest release: Jul 6, 2023
  • Number of updates: 23
  • Update frequency: every 71.5 days
  • Top authors: wordpresteem (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

700+ active /9,081 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.27MB] [CPU: ▼14.92ms] Passed 4 tests

An overview of server-side resources used by WE Blocks - Image, Testimonial And Logo Slider Gutenberg Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.60 ▲0.67
Dashboard /wp-admin3.32 ▼0.0346.41 ▼14.61
Posts /wp-admin/edit.php3.37 ▲0.0142.77 ▼3.36
Add New Post /wp-admin/post-new.php4.83 ▼1.0648.72 ▼42.38
Media Library /wp-admin/upload.php3.24 ▲0.0135.16 ▲0.94

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

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

Browser metrics Passed 4 tests

WE Blocks - Image, Testimonial And Logo Slider Gutenberg Blocks: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,004 ▲24314.82 ▲0.4733.55 ▲31.7743.70 ▲2.13
Dashboard /wp-admin2,235 ▲615.56 ▲0.0384.11 ▼15.1041.01 ▼3.14
Posts /wp-admin/edit.php2,144 ▲442.16 ▲0.1835.17 ▼4.3534.74 ▼1.04
Add New Post /wp-admin/post-new.php6,403 ▲4,87728.15 ▲4.59943.38 ▲267.3437.18 ▼17.29
Media Library /wp-admin/upload.php1,438 ▲414.23 ▼0.12102.36 ▲1.2543.41 ▲1.31

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
6 plugin tags: gutenberg slider block, posts slider block, gutenberg block, logo slider gutenberg block, testimonial slider gutenberg block...

we-blocks/plugin.php 77% from 13 tests

The main PHP file in "WE Blocks - Image, Testimonial And Logo Slider Gutenberg Blocks" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("we-blocks.php" instead of "plugin.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.1" instead of "5.6.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin11,560 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
CSS162,023555,219
SVG4103,940
JavaScript7123731,720
PHP38398373
Sass3212308

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants0
▷ Global constants00.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
20 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/we-start/t-02.png5.34KB2.98KB▼ 44.20%
dist/we-start/l-01.png4.57KB2.20KB▼ 51.95%
dist/we-start/logo-slider.png1.64KB0.80KB▼ 51.22%
dist/we-start/l-02.png5.11KB2.94KB▼ 42.39%
assets/img/left.png0.40KB0.57KB0.00%