84% quick-testimonials

Code Review | Quick Testimonials

WordPress plugin Quick Testimonials scored 84% from 54 tests.

About plugin

  • Plugin page: quick-testimonials
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2019
  • Latest release: May 20, 2021
  • Number of updates: 23
  • Update frequency: every 37.6 days
  • Top authors: themeregion (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 1,572 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲2.03MB] [CPU: ▲8.01ms] Passed 4 tests

This is a short check of server-side resources used by Quick Testimonials
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.29 ▲0.8348.51 ▲8.22
Dashboard /wp-admin5.84 ▲2.5456.73 ▲8.29
Posts /wp-admin/edit.php5.92 ▲2.5662.80 ▲12.74
Add New Post /wp-admin/post-new.php8.06 ▲2.1893.08 ▲2.80
Media Library /wp-admin/upload.php5.83 ▲2.6047.99 ▲13.81
All Testimonials /wp-admin/edit.php?post_type=tr_testimonial5.9060.65
Help /wp-admin/edit.php?post_type=tr_testimonial&page=qt_help5.8246.02
Add New /wp-admin/post-new.php?post_type=tr_testimonial5.8972.12

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 169 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Quick Testimonials
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,171 ▲43617.91 ▲3.718.20 ▲5.9745.46 ▼1.80
Dashboard /wp-admin2,473 ▲2858.40 ▲2.49165.22 ▲58.9643.76 ▲3.95
Posts /wp-admin/edit.php2,543 ▲4545.05 ▲3.0567.90 ▲31.7130.48 ▼3.65
Add New Post /wp-admin/post-new.php1,789 ▲24923.98 ▲0.87612.99 ▼33.8735.77 ▼18.17
Media Library /wp-admin/upload.php1,680 ▲2986.39 ▲2.2394.25 ▼4.2642.56 ▲1.67
All Testimonials /wp-admin/edit.php?post_type=tr_testimonial1,5085.7174.4931.21
Help /wp-admin/edit.php?post_type=tr_testimonial&page=qt_help2,07311.70325.10103.41
Add New /wp-admin/post-new.php?post_type=tr_testimonial3,3826.27100.78118.25

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 69× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: qt_mgs in wp-content/plugins/quick-testimonials/public/partials/quick-testimonials-slider-shortcode.php on line 23
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/quick-testimonials/public/partials/quick-testimonials-slider-shortcode.php on line 24
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/quick-testimonials/public/partials/quick-testimonials-scriptsnstyles.php on line 90
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/quick-testimonials/public/partials/quick-testimonials-slider-shortcode.php on line 21
    • > PHP Notice
      Undefined variable: qt_title in wp-content/plugins/quick-testimonials/public/partials/quick-testimonials-scriptsnstyles.php on line 33
    • > PHP Notice
      Undefined variable: qt_mgs in wp-content/plugins/quick-testimonials/public/partials/quick-testimonials-list-shortcode.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quick-testimonials/public/partials/quick-testimonials-shortcode.php:92
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/quick-testimonials/public/partials/quick-testimonials-grid-shortcode.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-testimonials/admin/partials/qt-cpt.php:61
    • > PHP Notice
      Undefined variable: qt_mcf in wp-content/plugins/quick-testimonials/public/partials/quick-testimonials-grid-shortcode.php on line 33

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === quick-testimonials === )
You can look at the official readme.txt

quick-testimonials/quick-testimonials.php 92% from 13 tests

Analyzing the main PHP file in "Quick Testimonials" version 2.1
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin32,044 lines of code in 132 files:
LanguageFilesBlank linesComment linesLines of code
PHP922,5871,71711,432
CSS117184769,004
JavaScript121,3393795,152
Sass137553213,640
SVG3002,673
PO File16371143

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity17.51
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes59
▷ Abstract classes23.39%
▷ Concrete classes5796.61%
▷ Final classes00.00%
Methods231
▷ Static methods3414.72%
▷ Public methods22597.40%
▷ Protected methods10.43%
▷ Private methods52.16%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
14 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/arrow-2.png0.51KB0.34KB▼ 32.56%
admin/img/arrow-5.png0.88KB0.59KB▼ 32.82%
admin/partials/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
admin/img/arrow-3.png0.60KB0.36KB▼ 40.55%
admin/img/arrow-9.png1.62KB0.91KB▼ 43.93%