89% testimonial-carousel-block

Code Review | Testimonial Carousel Block

WordPress plugin Testimonial Carousel Block scored89%from 54 tests.

About plugin

  • Plugin page: testimonial-carou...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 18, 2023
  • Latest release: Nov 18, 2023
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: wpfound (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /22 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.02MB] [CPU: ▼3.33ms] Passed 4 tests

Analyzing server-side resources used by Testimonial Carousel Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.89 ▼4.39
Dashboard /wp-admin3.32 ▲0.0242.75 ▼11.63
Posts /wp-admin/edit.php3.37 ▲0.0243.68 ▲1.41
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.57 ▲1.29
Media Library /wp-admin/upload.php3.25 ▲0.0234.11 ▲3.12

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Testimonial Carousel Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲614.69 ▼0.071.58 ▼0.3937.04 ▼6.64
Dashboard /wp-admin2,195 ▲215.61 ▼0.0492.03 ▼10.8743.08 ▼3.87
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0739.72 ▲0.0436.57 ▼2.02
Add New Post /wp-admin/post-new.php1,573 ▲4723.83 ▲0.46631.53 ▼43.2347.59 ▲1.71
Media Library /wp-admin/upload.php1,403 ▲64.20 ▼0.06102.67 ▼0.2741.59 ▼1.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: You can look at the official readme.txt

testimonial-carousel-block/testimonial-carousel-gutenberg-block.php 77% from 13 tests

"Testimonial Carousel Block" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("testimonial-carousel-block.php" instead of "testimonial-carousel-gutenberg-block.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.4" instead of "6.1")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.2" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin40,317 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JSON30032,615
JavaScript21,6811,9387,322
CSS299349
PHP3127631

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin