94% advanced-testimonial-carousel-for-elementor

Code Review | Advanced Testimonial Carousel for Elementor

WordPress plugin Advanced Testimonial Carousel for Elementor scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-testimon...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 5.9.2
  • First release: Mar 24, 2021
  • Latest release: Feb 16, 2022
  • Number of updates: 6
  • Update frequency: every 55.0 days
  • Top authors: ruhel241 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 1,265 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼311.43ms] Passed 4 tests

A check of server-side resources used by Advanced Testimonial Carousel for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0359.07 ▲8.07
Dashboard /wp-admin3.43 ▲0.0351.40 ▲13.06
Posts /wp-admin/edit.php3.67 ▲0.0341.69 ▲0.37
Add New Post /wp-admin/post-new.php6.90 ▼0.06104.10 ▼1,258.07
Media Library /wp-admin/upload.php3.32 ▲0.0229.96 ▲3.93

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Testimonial Carousel for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,829 ▲8516.18 ▲0.446.47 ▲0.192.27 ▼0.02
Dashboard /wp-admin2,929 ▲716.00 ▼0.16122.03 ▼21.07160.16 ▼6.33
Posts /wp-admin/edit.php2,692 ▲13.26 ▲0.01104.42 ▲38.52143.42 ▼3.83
Add New Post /wp-admin/post-new.php1,771 ▲8221.30 ▲0.38457.16 ▲15.66162.52 ▲2.28
Media Library /wp-admin/upload.php1,722 ▲245.51 ▼0.01139.75 ▼1.24195.70 ▲12.98

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
Uninstall script ran successfully

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/advanced-testimonial-carousel-for-elementor/widgets/atc-testimonial-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Requires php: Version format is invalid
The official readme.txt is a good inspiration

advanced-testimonial-carousel-for-elementor/advanced-testimonial-carousel-for-elementor.php 92% from 13 tests

The entry point to "Advanced Testimonial Carousel for Elementor" version 1.2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected8,487 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JSON3007,667
PHP2129163814
JavaScript2105
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity9.00
▷ Minimum class complexity7.00
▷ Maximum class complexity11.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods19
▷ Static methods15.26%
▷ Public methods1789.47%
▷ Protected methods210.53%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin