84% responsive-testimonials

Code Review | Responsive Testimonials

WordPress plugin Responsive Testimonials scored 84% from 54 tests.

About plugin

  • Plugin page: responsive-testim...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3
  • WordPress version: 6.3.1
  • First release: Jun 3, 2015
  • Latest release: Aug 28, 2023
  • Number of updates: 38
  • Update frequency: every 79.2 days
  • Top authors: spwebguy (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active / 9,075 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.18MB] [CPU: ▼2.09ms] Passed 4 tests

An overview of server-side resources used by Responsive Testimonials
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1636.49 ▼6.95
Dashboard /wp-admin3.49 ▲0.1845.33 ▼1.48
Posts /wp-admin/edit.php3.53 ▲0.1851.97 ▲7.33
Add New Post /wp-admin/post-new.php6.09 ▲0.2186.96 ▼1.29
Media Library /wp-admin/upload.php3.41 ▲0.1834.96 ▲1.36
Add New /wp-admin/post-new.php?post_type=ttml3.8557.11
All Testimonial sets /wp-admin/edit.php?post_type=ttml3.4536.33

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 137 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Testimonials
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.33 ▼0.885.81 ▲3.4739.75 ▼7.89
Dashboard /wp-admin2,241 ▲534.97 ▲0.07100.72 ▼5.8539.29 ▼5.48
Posts /wp-admin/edit.php2,127 ▲382.07 ▲0.0441.33 ▲4.5735.12 ▲0.05
Add New Post /wp-admin/post-new.php1,550 ▲1718.33 ▼4.85596.28 ▼91.4853.18 ▲3.93
Media Library /wp-admin/upload.php1,423 ▲354.28 ▲0.1296.57 ▼12.0740.53 ▼4.86
Add New /wp-admin/post-new.php?post_type=ttml2,4694.3983.1849.23
All Testimonial sets /wp-admin/edit.php?post_type=ttml1,1002.0733.4130.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 39× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/responsive-testimonials/inc/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/responsive-testimonials/inc/cmb2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/responsive-testimonials/inc/cmb2/includes/types/CMB2_Type_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/responsive-testimonials/inc/cmb2/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/responsive-testimonials/inc/cmb2/includes/types/CMB2_Type_Text_Time.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/responsive-testimonials/inc/cmb2/includes/types/CMB2_Type_Oembed.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/responsive-testimonials/inc/cmb2/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/responsive-testimonials/inc/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/responsive-testimonials/inc/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/responsive-testimonials/inc/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: referrals, responsive, shortcode, recommendations, client testimonials...

responsive-testimonials/ttml.php 85% from 13 tests

"Responsive Testimonials" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 419 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("responsive-testimonials.php" instead of "ttml.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
There were no executable files found in this plugin15,202 lines of code in 101 files:
LanguageFilesBlank linesComment linesLines of code
PHP572,1406,1347,116
CSS162811,1984,745
JavaScript93655901,474
Sass17306291,410
PO File2200212457

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity19.04
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes68
▷ Abstract classes913.24%
▷ Concrete classes5986.76%
▷ Final classes00.00%
Methods536
▷ Static methods8816.42%
▷ Public methods44482.84%
▷ Protected methods8916.60%
▷ Private methods30.56%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/links/pinterest.png3.40KB0.37KB▼ 89.22%
img/links/instagram.png3.21KB0.31KB▼ 90.25%
img/links/twitter.png3.22KB0.32KB▼ 90.14%
inc/cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
img/links/facebook.png2.96KB0.32KB▼ 89.29%