83% xl-testimonial-carousel

Code Review | XL Testimonial Carousel

WordPress plugin XL Testimonial Carousel scored83%from 54 tests.

About plugin

  • Plugin page: xl-testimonial-ca...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.9.4
  • WordPress version: 6.3.1
  • First release: Nov 17, 2015
  • Latest release: Mar 10, 2018
  • Number of updates: 7
  • Update frequency: every 120.6 days
  • Top authors: xltheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,210 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.12ms] Passed 4 tests

Analyzing server-side resources used by XL Testimonial Carousel
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.98 ▼4.99
Dashboard /wp-admin3.33 ▲0.0245.46 ▼5.06
Posts /wp-admin/edit.php3.38 ▲0.0246.72 ▲1.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.40 ▼11.74
Media Library /wp-admin/upload.php3.25 ▲0.0237.46 ▲3.15
All Testimonial /wp-admin/edit.php?post_type=testimonial3.2936.07
Add New /wp-admin/post-new.php?post_type=testimonial3.3647.25

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by XL Testimonial Carousel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲19013.72 ▼0.576.35 ▲4.1940.23 ▼3.70
Dashboard /wp-admin2,230 ▲395.85 ▲0.9999.60 ▼15.8540.06 ▼2.21
Posts /wp-admin/edit.php2,116 ▲242.02 ▼0.0139.46 ▲0.3235.44 ▲3.05
Add New Post /wp-admin/post-new.php1,557 ▲2123.21 ▲0.15665.84 ▲32.4245.48 ▼6.85
Media Library /wp-admin/upload.php1,418 ▲334.21 ▼0.03108.99 ▲9.9147.43 ▲3.58
All Testimonial /wp-admin/edit.php?post_type=testimonial1,0861.9930.9029.47
Add New /wp-admin/post-new.php?post_type=testimonial2,2197.83160.5364.43

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 5× 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/xl-testimonial-carousel/inc/xl-scripts.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xl-testimonial-carousel/inc/xl-cpt.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xl-testimonial-carousel/inc/xl-scripts.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xl-testimonial-carousel/inc/xl-metabox.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/xl-testimonial-carousel/inc/xl-markup.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt is a good inspiration

xl-testimonial-carousel/functions.php 85% from 13 tests

"XL Testimonial Carousel" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("xl-testimonial-carousel.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,352 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS21435991
SVG100211
PHP53726128
JavaScript24322

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin