72% super-testimonial

Code Review | Super Testimonials

WordPress plugin Super Testimonials scored72%from 54 tests.

About plugin

  • Plugin page: super-testimonial
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2016
  • Latest release: Nov 11, 2023
  • Number of updates: 73
  • Update frequency: every 36.2 days
  • Top authors: themepoints (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

3,000+ active /90,450 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.13ms] Passed 4 tests

This is a short check of server-side resources used by Super Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.71 ▼3.70
Dashboard /wp-admin3.37 ▲0.0247.94 ▼11.83
Posts /wp-admin/edit.php3.42 ▲0.0646.53 ▼10.65
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.41 ▲0.11
Media Library /wp-admin/upload.php3.29 ▲0.0633.27 ▼2.32
Frontend Submission /wp-admin/edit.php?post_type=ktsprotype&page=frontend-form-options3.2735.66
All Shortcode /wp-admin/edit.php?post_type=tptscode3.3439.24
All Testimonials /wp-admin/edit.php?post_type=ktsprotype3.3437.09
doc & Support /wp-admin/edit.php?post_type=ktsprotype&page=testimonial_pro_shortcode3.2932.60
Categories /wp-admin/edit-tags.php?taxonomy=ktspcategory&post_type=ktsprotype3.3836.31
Generate Shortcode /wp-admin/post-new.php?post_type=tptscode3.3448.05
New Testimonial /wp-admin/post-new.php?post_type=ktsprotype3.3858.76

Server storage [IO: ▲1.28MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Super Testimonials: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲21713.82 ▼0.5310.79 ▲9.0444.58 ▲0.75
Dashboard /wp-admin2,246 ▲665.65 ▲0.0285.74 ▼5.1737.22 ▼6.39
Posts /wp-admin/edit.php2,151 ▲481.95 ▲0.0038.26 ▼4.3433.18 ▼3.89
Add New Post /wp-admin/post-new.php1,568 ▲4223.36 ▲0.19634.01 ▲1.6053.40 ▲2.24
Media Library /wp-admin/upload.php1,454 ▲574.23 ▲0.0896.95 ▼4.9544.05 ▼0.33
Frontend Submission /wp-admin/edit.php?post_type=ktsprotype&page=frontend-form-options1,2351.9229.2031.87
All Shortcode /wp-admin/edit.php?post_type=tptscode1,1652.2335.3829.68
All Testimonials /wp-admin/edit.php?post_type=ktsprotype1,1772.2035.7830.58
doc & Support /wp-admin/edit.php?post_type=ktsprotype&page=testimonial_pro_shortcode9001.9330.6043.57
Categories /wp-admin/edit-tags.php?taxonomy=ktspcategory&post_type=ktsprotype1,3222.1227.5631.91
Generate Shortcode /wp-admin/post-new.php?post_type=tptscode5,9333.54161.7835.83
New Testimonial /wp-admin/post-new.php?post_type=ktsprotype1,9423.7767.1737.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • testimonial_installed
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • st_user_fields

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ktsprotype
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/super-testimonial/tp-testimonials.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=tptscode
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'value')" "TypeError: Cannot read properties of null (reading 'value')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/super-testimonial/admin/js/tp-testimonial-admin.js?ver=1.0:135:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?post_type=tptscode
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'value')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: testimonial, testimonial widget, testimonial shortcode, client review, testimonial slider...

super-testimonial/tp-testimonials.php 85% from 13 tests

This is the main PHP file of "Super Testimonials" version 3.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 263 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-testimonial.php" instead of "tp-testimonials.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin9,770 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP153723233,867
CSS614312,729
JavaScript45889662,489
SVG100685

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
frontend/images/laquo.png1.13KB0.29KB▼ 74.65%
frontend/css/grabbing.png0.11KB0.14KB0.00%
frontend/images/photo-bg.png0.07KB0.09KB0.00%
frontend/images/raquo.png1.11KB0.28KB▼ 74.50%
frontend/images/block.png17.35KB11.25KB▼ 35.14%