99% awesome-logo-carousel-block

Code Review | Logo Carousel Gutenberg Block

WordPress plugin Logo Carousel Gutenberg Block scored 99% from 54 tests.

About plugin

  • Plugin page: awesome-logo-caro...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Jul 27, 2021
  • Latest release: Nov 2, 2021
  • Number of updates: 3
  • Update frequency: every 35.4 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 125 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.11MB] [CPU: ▼156.88ms] Passed 4 tests

Server-side resources used by Logo Carousel Gutenberg Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0235.78 ▲2.06
Dashboard /wp-admin3.07 ▲0.0144.76 ▲0.07
Posts /wp-admin/edit.php3.12 ▲0.0143.64 ▼1.77
Add New Post /wp-admin/post-new.php4.97 ▼0.4662.48 ▼622.15
Media Library /wp-admin/upload.php3.01 ▲0.0132.38 ▼3.66

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Logo Carousel Gutenberg Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,818 ▲22216.40 ▲0.7812.56 ▲2.0349.01 ▲2.10
Dashboard /wp-admin2,973 ▲395.89 ▼0.22144.77 ▲2.31100.64 ▼7.77
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0168.58 ▼31.2591.05 ▼1.52
Add New Post /wp-admin/post-new.php1,623 ▼6023.34 ▲4.58288.86 ▼144.39106.43 ▲0.41
Media Library /wp-admin/upload.php1,807 ▼34.99 ▼0.04198.45 ▲22.13116.27 ▼16.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: slider block, carousel block, gutenberg block, logo slider, image carousel...

awesome-logo-carousel-block/plugin.php 85% from 13 tests

"Logo Carousel Gutenberg Block" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("awesome-logo-carousel-block.php" instead of "plugin.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 222 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,788 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript81,7519519,078
CSS3842576
PHP2204587
Sass32047

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods114.29%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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