90% testimonials-slider-block

Code Review | Testimonials Slider Block

WordPress plugin Testimonials Slider Block scored90%from 54 tests.

About plugin

  • Plugin page: testimonials-slid...
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 21, 2018
  • Latest release: Jul 15, 2022
  • Number of updates: 15
  • Update frequency: every 94.9 days
  • Top authors: mmuhsin (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /3,771 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
Installer ran successfully

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

Analyzing server-side resources used by Testimonials Slider Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.09 ▼1.22
Dashboard /wp-admin3.31 ▼0.0443.39 ▼14.10
Posts /wp-admin/edit.php3.36 ▲0.0044.11 ▼6.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.02 ▼10.68
Media Library /wp-admin/upload.php3.23 ▲0.0037.55 ▲4.61

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonials Slider Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲13013.59 ▼0.6810.78 ▲9.2641.24 ▲2.84
Dashboard /wp-admin2,195 ▲155.52 ▼0.1282.65 ▼0.5543.43 ▼0.68
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0835.97 ▼0.9831.82 ▼0.39
Add New Post /wp-admin/post-new.php6,381 ▲4,85524.65 ▲1.36907.82 ▲269.0843.51 ▼15.82
Media Library /wp-admin/upload.php1,394 ▼64.21 ▼0.0095.39 ▼5.5945.53 ▲1.69

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
No output text or server-side errors detected on direct access of PHP files

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

testimonials-slider-block/testimonials-slider-block.php Passed 13 tests

Analyzing the main PHP file in "Testimonials Slider Block" version 1.2.3
119 characters long description:
Testimonials Slider Block allows you to add a testimonials slider block to your WordPress content via the block editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin22,365 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JSON20017,730
SVG3003,927
JavaScript722395492
Sass2272157
PHP2104630
Markdown112025
CSS40104

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin