84% sola-testimonials

Code Review | Super Testimonials

WordPress plugin Super Testimonials scored 84% from 54 tests.

About plugin

  • Plugin page: sola-testimonials
  • Plugin version: 3.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5.1
  • WordPress version: 5.8.1
  • First release: Nov 21, 2014
  • Latest release: Nov 13, 2020
  • Number of updates: 36
  • Update frequency: every 60.7 days
  • Top authors: SolaPlugins (88.89%)abelc (13.89%)

Code review

54 tests

User reviews

26 reviews

Install metrics

900+ active / 30,671 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▼135.16ms] Passed 4 tests

An overview of server-side resources used by Super Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.21 ▲0.3748.40 ▲16.88
Dashboard /wp-admin3.50 ▲0.4552.43 ▲4.34
Posts /wp-admin/edit.php3.57 ▲0.4657.37 ▲13.81
Add New Post /wp-admin/post-new.php5.80 ▲0.36105.14 ▼562.08
Media Library /wp-admin/upload.php3.39 ▲0.3941.16 ▲3.30
Add New /wp-admin/post-new.php?post_type=testimonials3.5663.67
Feedback /wp-admin/edit.php?post_type=testimonials&page=sola_t_feedback3.3737.21
Settings /wp-admin/edit.php?post_type=testimonials&page=sola_t_settings3.4638.57
All Testimonials /wp-admin/edit.php?post_type=testimonials3.4442.57

Server storage [IO: ▲4.33MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 194 new files
Database: no new tables, 6 new options
New WordPress options
sola_t_token
widget_sola_testimonials_widget_slider_basic
widget_sola_testimonials_widget_single
widget_sola_testimonials_widget_random
sola_t_style_settings
sola_t_options_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Super Testimonials
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,985 ▲41322.90 ▲7.3510.63 ▲0.1750.46 ▲1.48
Dashboard /wp-admin3,257 ▲32912.38 ▲6.39251.27 ▲109.41118.51 ▲8.93
Posts /wp-admin/edit.php3,080 ▲3418.97 ▲6.25137.82 ▲62.23115.90 ▲13.84
Add New Post /wp-admin/post-new.php1,805 ▲12222.97 ▲4.40221.31 ▼174.91113.01 ▼10.19
Media Library /wp-admin/upload.php2,150 ▲34311.74 ▲6.71201.67 ▲44.02122.69 ▼4.88
Add New /wp-admin/post-new.php?post_type=testimonials3,48815.83287.41156.77
Feedback /wp-admin/edit.php?post_type=testimonials&page=sola_t_feedback1,5129.47125.4291.20
Settings /wp-admin/edit.php?post_type=testimonials&page=sola_t_settings1,9049.45187.00166.02
All Testimonials /wp-admin/edit.php?post_type=testimonials1,8198.85129.2692.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • sola_t_options_settings
    • sola_t_token
    • widget_sola_testimonials_widget_single
    • sola_t_style_settings
    • widget_sola_testimonials_widget_slider_basic
    • widget_sola_testimonials_widget_random

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/sola-testimonials/includes/settings/shortcodes.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sola-testimonials/includes/settings/styles.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sola-testimonials/includes/settings/options.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/sola-testimonials/includes/feedback.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/sola-testimonials/includes/settings/forms.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/sola-testimonials/includes/settings/upgrade.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sola-testimonials/includes/shortcodes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/sola-testimonials/includes/gutenberg-blocks/single-testimonial/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/sola-testimonials/includes/footer.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/sola-testimonials/sola-testimonials.php:159

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: testimonial manager, testimonial plugin, testimonials, testimonial, testimonial widget

sola-testimonials/sola-testimonials.php Passed 13 tests

This is the main PHP file of "Super Testimonials" version 3.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
A super easy to use and comprehensive Testimonial plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin11,296 lines of code in 142 files:
LanguageFilesBlank linesComment linesLines of code
PO File122,6784,1146,148
PHP175823682,663
CSS8141731,605
JavaScript10515271880

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity5.00
▷ Minimum class complexity3.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
36 PNG files occupy 1.06MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/layouts/sola-t-theme-3.png61.74KB19.23KB▼ 68.85%
images/welcome-image.png13.46KB7.43KB▼ 44.80%
images/layouts/sola-t-image-2.png6.92KB2.10KB▼ 69.72%
css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%