88% testimonial-awesome

Code Review | Testimonial Slider, Grid & Carousel

WordPress plugin Testimonial Slider, Grid & Carousel scored 88% from 54 tests.

About plugin

  • Plugin page: testimonial-awesome
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 5.9.2
  • First release: Sep 28, 2020
  • Latest release: Feb 7, 2022
  • Number of updates: 12
  • Update frequency: every 41.7 days
  • Top authors: themesawesome (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 1,789 total downloads


Plugin footprint Passed 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: ▲1.80MB] [CPU: ▼288.55ms] 75% from 4 tests

Server-side resources used by Testimonial Slider, Grid & Carousel
Please have a look at the following items
  • RAM: The total memory usage must be kept under 10MB (currently 11.68MB on /wp-admin/post-new.php?post_type=testimonial-awesome)
PageMemory (MB)CPU Time (ms)
Home /5.57 ▲2.0579.88 ▲19.96
Dashboard /wp-admin5.50 ▲2.0855.37 ▲16.69
Posts /wp-admin/edit.php5.72 ▲2.0858.53 ▲19.69
Add New Post /wp-admin/post-new.php7.98 ▲1.0176.97 ▼1,201.56
Media Library /wp-admin/upload.php5.36 ▲2.0637.87 ▲11.00
All Testimonials /wp-admin/edit.php?post_type=testimonial-awesome5.4450.24
Add New /wp-admin/post-new.php?post_type=testimonial-awesome11.68108.14

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 567 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonial Slider, Grid & Carousel
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,172 ▲41720.29 ▲4.276.58 ▲0.832.33 ▼0.34
Dashboard /wp-admin3,328 ▲46710.52 ▲4.38200.65 ▲63.74159.65 ▼23.36
Posts /wp-admin/edit.php3,162 ▲4777.92 ▲4.68107.43 ▲42.49139.70 ▼1.31
Add New Post /wp-admin/post-new.php1,832 ▲16416.61 ▼2.60460.66 ▲44.47186.21 ▲31.80
Media Library /wp-admin/upload.php1,903 ▲2058.14 ▲2.54143.84 ▼4.81218.70 ▼26.29
All Testimonials /wp-admin/edit.php?post_type=testimonial-awesome1,8107.88104.79110.97
Add New /wp-admin/post-new.php?post_type=testimonial-awesome11,19215.66378.85171.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/testimonial-awesome/public/partials/testimonial-awesome-public-display.php
    • > /wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 141× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/templates/Container/post_meta.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/core/Field/Predefined_Options_Field.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/templates/Container/term_meta.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/core/Container/Nav_Menu_Item_Container.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/core/Field/Color_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function carbon_get_post_meta() in wp-content/plugins/testimonial-awesome/public/testimonial-styles/testimonial-style-4.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/testimonial-awesome/gutenberg-blocks/testimonial-block.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Level_Condition.php:10
    • > PHP Notice
      Undefined variable: hideErrorsCookieName in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 21
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Equality_Comparer.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: testimonial list, testimonial grid, testimonial slider, testimonial carousel, testimonials

testimonial-awesome/testimonial-awesome.php Passed 13 tests

Analyzing the main PHP file in "Testimonial Slider, Grid & Carousel" version 1.0.1
126 characters long description:
Testimonial Awesome is an awesome plugin that helps You to create the Testimonials interface element into your WordPress Site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected43,564 lines of code in 484 files:
LanguageFilesBlank linesComment linesLines of code
PO File216147831,673

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.01
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes118.03%
▷ Concrete classes12691.97%
▷ Final classes10.79%
▷ Static methods10210.48%
▷ Public methods79481.60%
▷ Protected methods16917.37%
▷ Private methods101.03%
▷ Named functions4231.58%
▷ Anonymous functions9168.42%
▷ Global constants1435.90%
▷ Class constants2564.10%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/timeline-vertical-bg.png0.91KB0.10KB▼ 89.19%
public/img/vertical-8.png0.11KB0.11KB▼ 0.85%
public/img/date-icon-vertical.png0.95KB0.17KB▼ 82.60%