77% tribute-testimonial-gridslider

Code Review | Tribute Testimonials – WordPress Testimonial Grid/Slider

WordPress plugin Tribute Testimonials – WordPress Testimonial Grid/Slider scored77%from 54 tests.

About plugin

  • Plugin page: tribute-testimoni...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 26, 2022
  • Latest release: Nov 11, 2023
  • Number of updates: 22
  • Update frequency: every 17.6 days
  • Top authors: boomdevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,453 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.01MB] [CPU: ▼8.22ms] Passed 4 tests

This is a short check of server-side resources used by Tribute Testimonials – WordPress Testimonial Grid/Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.18 ▲1.7153.63 ▲10.18
Dashboard /wp-admin5.00 ▲1.6560.15 ▼3.78
Posts /wp-admin/edit.php5.12 ▲1.7665.07 ▲15.31
Add New Post /wp-admin/post-new.php4.88 ▼1.0146.44 ▼54.57
Media Library /wp-admin/upload.php4.93 ▲1.7053.46 ▲16.95
All widgets /wp-admin/edit.php?post_type=tribute-widgets4.9648.99
Testimonials /wp-admin/edit.php?post_type=tribute-testimonials5.0054.41
Categories /wp-admin/edit-tags.php?taxonomy=tribute-testimonial-categories&post_type=tribute-testimonials4.9552.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Tribute Testimonials – WordPress Testimonial Grid/Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲15518.17 ▲3.8222.43 ▲20.6039.22 ▼5.46
Dashboard /wp-admin2,176 ▼57.80 ▲2.09226.92 ▲122.9840.92 ▼1.38
Posts /wp-admin/edit.php2,055 ▼454.46 ▲2.45146.27 ▲104.3133.86 ▼2.58
Add New Post /wp-admin/post-new.php1,557 ▲3124.97 ▲1.83745.46 ▲61.9553.49 ▲0.33
Media Library /wp-admin/upload.php1,437 ▲376.27 ▲2.11218.31 ▲116.7343.62 ▼0.07
All widgets /wp-admin/edit.php?post_type=tribute-widgets1,0134.63175.4128.91
Testimonials /wp-admin/edit.php?post_type=tribute-testimonials1,2706.90178.7226.48
Categories /wp-admin/edit-tags.php?taxonomy=tribute-testimonial-categories&post_type=tribute-testimonials1,4876.45180.2730.16

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/tribute-testimonial-gridslider/public/partials/tribute-wordpress-testimonial-slider-plugin-public-display.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'BDTWTS_DIRincludes/class-bdtwts-utils.php' (include_path='.:/usr/share/php') in wp-content/plugins/tribute-testimonial-gridslider/admin/class-bdtwts-admin.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'BDTWTS_DIRincludes/class-bdtwts-utils.php' (include_path='.:/usr/share/php') in wp-content/plugins/tribute-testimonial-gridslider/public/class-tribute-wordpress-testimonial-slider-plugin-public.php on line 2
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/tribute-testimonial-gridslider/bdtwtsg.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tribute-testimonial-gridslider/bdtwtsg.php on line 2
    • > PHP Warning
      require_once(BDTWTS_DIRincludes/class-bdtwts-utils.php): failed to open stream: No such file or directory in wp-content/plugins/tribute-testimonial-gridslider/admin/class-bdtwts-admin.php on line 2
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/tribute-testimonial-gridslider/bdtwtsg.php on line 2
    • > PHP Warning
      require_once(BDTWTS_DIRincludes/class-bdtwts-utils.php): failed to open stream: No such file or directory in wp-content/plugins/tribute-testimonial-gridslider/public/class-tribute-wordpress-testimonial-slider-plugin-public.php on line 2
    • > PHP Warning
      Use of undefined constant BDTWTS_DIR - assumed 'BDTWTS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/tribute-testimonial-gridslider/admin/class-bdtwts-admin.php on line 2
    • > PHP Warning
      Use of undefined constant BDTWTS_DIR - assumed 'BDTWTS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/tribute-testimonial-gridslider/public/class-tribute-wordpress-testimonial-slider-plugin-public.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #25, #26, #3, #4, #5, #6, #7, #8, #9 in tribute-testimonial-gridslider/assets to your readme.txt
You can take inspiration from this readme.txt

tribute-testimonial-gridslider/bdtwtsg.php 69% from 13 tests

This is the main PHP file of "Tribute Testimonials – WordPress Testimonial Grid/Slider" version 1.0.3, 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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tribute-testimonial-gridslider.php" instead of "bdtwtsg.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin54,166 lines of code in 190 files:
LanguageFilesBlank linesComment linesLines of code
PHP1184,1233,05617,843
SVG8109,569
CSS136145307,737
JavaScript111,2995646,573
PO File203,1983,5916,500
Sass1696935,667
Markdown1700196
JSON30081

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity22.39
▷ Minimum class complexity1.00
▷ Maximum class complexity150.00
Average method complexity5.23
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes85
▷ Abstract classes22.35%
▷ Concrete classes8397.65%
▷ Final classes00.00%
Methods431
▷ Static methods6414.85%
▷ Public methods38288.63%
▷ Protected methods61.39%
▷ Private methods439.98%
Functions31
▷ Named functions3096.77%
▷ Anonymous functions13.23%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
23 PNG files occupy 0.99MB with 0.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Skin5.png29.02KB10.07KB▼ 65.30%
images/Skin21.png82.64KB29.25KB▼ 64.60%
images/Skin22.png56.34KB20.06KB▼ 64.39%
images/Skin6.png15.81KB6.60KB▼ 58.27%
images/Skin13.png48.18KB17.76KB▼ 63.13%