78% testimonial-awesome

Code Review | Testimonial Slider, Grid & Carousel

WordPress plugin Testimonial Slider, Grid & Carousel scored78%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: 6.3.1
  • 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

200+ active /2,847 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.79MB] [CPU: ▼2.32ms] 75% from 4 tests

Analyzing server-side resources used by Testimonial Slider, Grid & Carousel
Please fix the following
  • RAM: The total memory usage must be kept under 10MB (currently 11.40MB on /wp-admin/post-new.php?post_type=testimonial-awesome)
PageMemory (MB)CPU Time (ms)
Home /5.54 ▲2.0748.85 ▲9.08
Dashboard /wp-admin5.38 ▲2.0362.49 ▲4.45
Posts /wp-admin/edit.php5.43 ▲2.0767.32 ▲21.14
Add New Post /wp-admin/post-new.php6.90 ▲1.0160.14 ▼38.23
Media Library /wp-admin/upload.php5.28 ▲2.0550.13 ▲15.42
All Testimonials /wp-admin/edit.php?post_type=testimonial-awesome5.3553.58
Add New /wp-admin/post-new.php?post_type=testimonial-awesome11.40116.51

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 567 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Testimonial Slider, Grid & Carousel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,122 ▲38718.56 ▲4.191.65 ▼0.2538.17 ▼11.19
Dashboard /wp-admin2,537 ▲3499.15 ▲3.30184.21 ▲73.7144.02 ▼3.90
Posts /wp-admin/edit.php2,457 ▲3656.17 ▲4.1386.20 ▲43.2034.95 ▼0.49
Add New Post /wp-admin/post-new.php6,273 ▲4,73922.20 ▼1.041,005.92 ▲375.5850.25 ▼6.79
Media Library /wp-admin/upload.php1,602 ▲2146.63 ▲2.42110.35 ▲12.7541.70 ▼2.69
All Testimonials /wp-admin/edit.php?post_type=testimonial-awesome1,4446.2072.0826.75
Add New /wp-admin/post-new.php?post_type=testimonial-awesome8,83311.29299.2941.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /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× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Carbon_Fields' not found in wp-content/plugins/testimonial-awesome/vendor/ynacorp/carbon-field-uniqid/field.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/core/Service/REST_API_Service.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/core/Container/Block_Container.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Field_Icon\\Providers\\Icon_Provider_Interface' not found in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-field-icon/core/Providers/Font_Awesome_Provider.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/core/Container/Comment_Meta_Container.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Datastore' not found in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/core/Datastore/Empty_Datastore.php:10
    • > 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/Any_Equality_Comparer.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/testimonial-awesome/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
    • > 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/Current_User_ID_Condition.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: testimonial list, testimonial carousel, testimonials, testimonial slider, testimonial grid

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

The main PHP file in "Testimonial Slider, Grid & Carousel" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
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 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin43,564 lines of code in 484 files:
LanguageFilesBlank linesComment linesLines of code
CSS192,8711,74314,795
JavaScript1885,3878,90613,687
PHP1862,9177,28810,471
Sass5136701,936
PO File216147831,673
JSON1200797
Markdown6520162
SVG10043

PHP code Passed 2 tests

An overview 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.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
Namespaces27
Interfaces6
Traits0
Classes137
▷ Abstract classes118.03%
▷ Concrete classes12691.97%
▷ Final classes10.79%
Methods973
▷ Static methods10210.48%
▷ Public methods79481.60%
▷ Protected methods16917.37%
▷ Private methods101.03%
Functions133
▷ Named functions4231.58%
▷ Anonymous functions9168.42%
Constants39
▷ Global constants1435.90%
▷ Class constants2564.10%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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/date-icon.png0.14KB0.18KB0.00%
public/img/timeline-vertical-bg.png0.91KB0.10KB▼ 89.19%
public/img/timeline-bg.png0.08KB0.10KB0.00%
public/img/vertical-8.png0.11KB0.11KB▼ 0.85%
public/img/date-icon-vertical.png0.95KB0.17KB▼ 82.60%