84% testimonial-slider-shortcode

Code Review | Testimonial Slider Shortcode

WordPress plugin Testimonial Slider Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: testimonial-slide...
  • Plugin version: 1.1.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 16, 2016
  • Latest release: Sep 12, 2023
  • Number of updates: 28
  • Update frequency: every 90.4 days
  • Top authors: sazzadh (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /4,821 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Testimonial Slider Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.16 ▼3.62
Dashboard /wp-admin3.31 ▲0.0047.67 ▼5.49
Posts /wp-admin/edit.php3.36 ▲0.0053.41 ▲2.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.87 ▼23.79
Media Library /wp-admin/upload.php3.23 ▲0.0035.98 ▼3.15

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

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

Browser metrics Passed 4 tests

Testimonial Slider Shortcode: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲12813.44 ▼0.748.39 ▲6.7741.61 ▼1.02
Dashboard /wp-admin2,198 ▲205.61 ▼0.1594.09 ▼12.5843.49 ▲0.74
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0040.94 ▲2.2334.99 ▼1.41
Add New Post /wp-admin/post-new.php1,534 ▲618.43 ▼4.72630.42 ▼66.7163.11 ▼1.31
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.02100.29 ▼8.4643.31 ▼2.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/testimonial-slider-shortcode/testimonial-slider-shortcode.php:18

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 93% 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
These attributes need to be fixed:
  • Requires at least: Invalid version format
The official readme.txt is a good inspiration

testimonial-slider-shortcode/testimonial-slider-shortcode.php 92% from 13 tests

"Testimonial Slider Shortcode" version 1.1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin372 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS21220266
PHP11614104
JavaScript1002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin