89% hebo-logo-slider-block

Code Review | HeBo Logo Slider Gutenberg Block

WordPress plugin HeBo Logo Slider Gutenberg Block scored89%from 54 tests.

About plugin

  • Plugin page: hebo-logo-slider-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2019
  • Latest release: May 24, 2019
  • Number of updates: 8
  • Update frequency: every 1.9 days
  • Top authors: abohntek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,049 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.78ms] Passed 4 tests

An overview of server-side resources used by HeBo Logo Slider Gutenberg Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.62 ▼0.68
Dashboard /wp-admin3.31 ▲0.0149.81 ▼3.05
Posts /wp-admin/edit.php3.36 ▲0.0052.28 ▲0.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.89 ▼18.88
Media Library /wp-admin/upload.php3.23 ▲0.0038.27 ▼0.50

Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for HeBo Logo Slider Gutenberg Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲12513.82 ▼0.809.66 ▲7.7846.05 ▲0.51
Dashboard /wp-admin2,198 ▲205.61 ▲0.0384.90 ▼22.3541.57 ▼1.06
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0839.80 ▼3.8236.71 ▼0.28
Add New Post /wp-admin/post-new.php6,374 ▲4,84627.30 ▲4.07857.36 ▲198.8236.88 ▼21.05
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.0497.58 ▼2.9844.76 ▲0.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output 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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: slider, logo slider, gutenberg, blocks, logo

hebo-logo-slider-block/plugin.php 85% from 13 tests

The main PHP file in "HeBo Logo Slider Gutenberg Block" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("hebo-logo-slider-block.php" instead of "plugin.php")

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
There were no executable files found in this plugin2,490 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3848472,161
CSS4445276
PHP2125153

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin