89% testimonial-by-weblizar

Code Review | Testimonial - Responsive Testimonials Showcase

WordPress plugin Testimonial - Responsive Testimonials Showcase scored89%from 54 tests.

About plugin

  • Plugin page: testimonial-by-we...
  • Plugin version: 3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: May 1, 2014
  • Latest release: Nov 3, 2023
  • Number of updates: 70
  • Update frequency: every 49.6 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /10,279 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
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼8.66ms] Passed 4 tests

Server-side resources used by Testimonial - Responsive Testimonials Showcase
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.74 ▼0.53
Dashboard /wp-admin3.49 ▲0.1546.77 ▼15.32
Posts /wp-admin/edit.php3.60 ▲0.2547.41 ▼0.79
Add New Post /wp-admin/post-new.php6.09 ▲0.2081.03 ▼16.78
Media Library /wp-admin/upload.php3.41 ▲0.1835.63 ▼1.76
Add New /wp-admin/post-new.php?post_type=testimonial3.4647.67
All Testimonial Slider /wp-admin/edit.php?post_type=testimonial3.4637.53

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Testimonial - Responsive Testimonials Showcase
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7614.34 ▼0.401.59 ▼0.0637.77 ▼9.37
Dashboard /wp-admin2,231 ▲565.64 ▲0.0791.22 ▼35.4838.44 ▼6.57
Posts /wp-admin/edit.php2,133 ▲332.00 ▼0.0340.24 ▲2.6438.42 ▲1.02
Add New Post /wp-admin/post-new.php1,555 ▲2923.00 ▲0.02664.26 ▼42.4253.85 ▲4.80
Media Library /wp-admin/upload.php1,436 ▲364.20 ▼0.0197.39 ▼6.7743.78 ▼2.32
Add New /wp-admin/post-new.php?post_type=testimonial3,3434.85143.25189.54
All Testimonial Slider /wp-admin/edit.php?post_type=testimonial1,2151.9232.7241.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: testimonial, testimonial showcase, testimonials, testimonial slider, testimonial shortcode...

testimonial-by-weblizar/responsive-testimonial.php 77% from 13 tests

The main PHP script in "Testimonial - Responsive Testimonials Showcase" version 3.8 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 352 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("testimonial-by-weblizar.php" instead of "responsive-testimonial.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin10,924 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
SVG30128,777
PHP11891301,119
CSS912213878
JavaScript4810150

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity21.17
▷ Minimum class complexity1.00
▷ Maximum class complexity116.00
Average method complexity6.76
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods21
▷ Static methods1990.48%
▷ Public methods1990.48%
▷ Protected methods00.00%
▷ Private methods29.52%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
5 PNG files occupy 0.32MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/Layout2.png84.50KB27.61KB▼ 67.32%
assets/images/profile_img.png4.78KB4.53KB▼ 5.21%
assets/images/grabbing.png0.11KB0.14KB0.00%
assets/images/logo.png107.50KB34.96KB▼ 67.48%
assets/images/Layout1.png126.57KB39.64KB▼ 68.68%