83% awesome-logo-carousel-block

Code Review | Logo Carousel Gutenberg Block

WordPress plugin Logo Carousel Gutenberg Block scored83%from 54 tests.

About plugin

  • Plugin page: awesome-logo-caro...
  • Plugin version: 2.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Jul 27, 2021
  • Latest release: Aug 14, 2023
  • Number of updates: 9
  • Update frequency: every 84.0 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /5,731 total downloads

Benchmarks

Plugin footprint 83% from 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.06MB] [CPU: ▼5.51ms] 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 /3.53 ▲0.0737.51 ▼5.27
Dashboard /wp-admin3.36 ▲0.0545.15 ▼3.87
Posts /wp-admin/edit.php3.41 ▲0.0547.08 ▼4.68
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.80 ▼8.21
Media Library /wp-admin/upload.php3.29 ▲0.0540.19 ▲3.72
Logo Carousel Block /wp-admin/tools.php?page=aclb-carousel3.2530.23

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_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 /2,802 ▲1614.44 ▲0.162.68 ▲0.8839.71 ▼3.33
Dashboard /wp-admin2,202 ▲285.62 ▲0.0280.26 ▼17.6438.96 ▼4.34
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0835.08 ▼1.7929.67 ▼5.78
Add New Post /wp-admin/post-new.php6,371 ▲4,84527.95 ▲4.32892.04 ▲192.7966.28 ▲5.21
Media Library /wp-admin/upload.php1,407 ▲134.13 ▼0.1492.94 ▼1.1241.49 ▲0.02
Logo Carousel Block /wp-admin/tools.php?page=aclb-carousel1,41113.21290.2286.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • 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
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-logo-carousel-block/admin/admin.php:11

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: The official readme.txt is a good inspiration

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

"Logo Carousel Gutenberg Block" version 2.0.4'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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 199 characters long)
  • 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")

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,952 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1037378,770
CSS62919814
JSON100140
PHP32560115
Sass273113

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.16
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods11
▷ Static methods19.09%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions0
▷ Named functions00.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