79% simple-testimonials-showcase

Code Review | Simple Testimonials Showcase

WordPress plugin Simple Testimonials Showcase scored79%from 54 tests.

About plugin

  • Plugin page: simple-testimonia...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Aug 8, 2016
  • Latest release: Aug 10, 2023
  • Number of updates: 27
  • Update frequency: every 94.8 days
  • Top authors: PressTigers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /29,672 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▲1.65ms] Passed 4 tests

An overview of server-side resources used by Simple Testimonials Showcase
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1044.77 ▼1.08
Dashboard /wp-admin3.40 ▲0.1056.71 ▲5.31
Posts /wp-admin/edit.php3.44 ▲0.0857.81 ▲9.39
Add New Post /wp-admin/post-new.php6.01 ▲0.1291.14 ▼7.04
Media Library /wp-admin/upload.php3.33 ▲0.1047.02 ▲10.81
Categories /wp-admin/edit-tags.php?taxonomy=simple_testimonials_category&post_type=simple_testimonials3.3243.07
All Testimonials /wp-admin/edit.php?post_type=simple_testimonials3.3541.71
Add New /wp-admin/post-new.php?post_type=simple_testimonials3.4557.32
Settings /wp-admin/edit.php?post_type=simple_testimonials&page=simple-testimonials-settings3.3041.37

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simple Testimonials Showcase
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18213.76 ▼0.528.09 ▲6.2539.91 ▲1.28
Dashboard /wp-admin2,237 ▲575.62 ▼0.0586.36 ▼11.4939.91 ▼3.14
Posts /wp-admin/edit.php2,142 ▲422.07 ▲0.0940.80 ▲3.1635.94 ▲0.70
Add New Post /wp-admin/post-new.php1,562 ▲3623.71 ▲0.57694.82 ▲21.5963.54 ▲2.29
Media Library /wp-admin/upload.php1,436 ▲364.23 ▲0.0497.88 ▼11.4044.53 ▼2.43
Categories /wp-admin/edit-tags.php?taxonomy=simple_testimonials_category&post_type=simple_testimonials1,3192.1127.6231.83
All Testimonials /wp-admin/edit.php?post_type=simple_testimonials1,1201.9431.7034.78
Add New /wp-admin/post-new.php?post_type=simple_testimonials2,3537.59176.7471.52
Settings /wp-admin/edit.php?post_type=simple_testimonials&page=simple-testimonials-settings3,3364.71157.1638.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-testimonials-showcase/public/partials/simple-testimonials-showcase-public-display.php
    • > /wp-content/plugins/simple-testimonials-showcase/admin/partials/simple-testimonials-showcase-admin-display.php
  • 1× 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/simple-testimonials-showcase/includes/class-simple-testimonials-showcase-color-option.php:25

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: grid layout, testify, clients feedback, testimonials, testimonials management...

simple-testimonials-showcase/simple-testimonials-showcase.php Passed 13 tests

The main PHP script in "Simple Testimonials Showcase" version 1.1.5 is automatically included on every request by WordPress
75 characters long description:
This plugin allows you to create and display testimonials in multiple ways.

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
There were no executable files found in this plugin1,616 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP18182765834
JavaScript474182426
CSS2315356

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.46
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods4590.00%
▷ Protected methods00.00%
▷ Private methods510.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/sts-icon.png1.72KB0.72KB▼ 58.04%
public/images/left-litle.png2.90KB0.31KB▼ 89.30%
public/images/right-litle.png2.87KB0.30KB▼ 89.57%