72% stars-testimonials-with-slider-and-masonry-grid

Code Review | Free Responsive Testimonials, Social Proof Reviews, and Customer Reviews - Stars Testimonials

WordPress plugin Free Responsive Testimonials, Social Proof Reviews, and Customer Reviews - Stars Testimonials scored 72% from 54 tests.

About plugin

  • Plugin page: stars-testimonial...
  • Plugin version: 3.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Aug 30, 2017
  • Latest release: Jul 27, 2023
  • Number of updates: 137
  • Update frequency: every 15.7 days
  • Top authors: galdub (87.59%)premiocommit (8.76%)Rameez_Iqbal (5.11%)

Code review

54 tests

User reviews

60 reviews

Install metrics

2,000+ active / 45,758 total downloads

Benchmarks

Plugin footprint 65% 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.12MB] [CPU: ▼0.07ms] 75% from 4 tests

Server-side resources used by Free Responsive Testimonials, Social Proof Reviews, and Customer Reviews - Stars Testimonials
Please take the time to fix the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,898.11ms on /wp-admin/edit.php?post_type=stars_testimonial&page=recommended-plugins)
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.54 ▼0.70
Dashboard /wp-admin3.43 ▲0.1248.11 ▲2.62
Posts /wp-admin/edit.php3.48 ▲0.1247.08 ▼1.96
Add New Post /wp-admin/post-new.php6.01 ▲0.1285.33 ▼0.24
Media Library /wp-admin/upload.php3.35 ▲0.1240.71 ▲9.55
Collect Testimonials /wp-admin/edit.php?post_type=stars_testimonial&page=collect_review_page3.4141.39
All Testimonials /wp-admin/edit.php?post_type=stars_testimonial3.4445.84
All Widget Shortcodes /wp-admin/edit.php?post_type=stars_testimonial&page=all-shortcodes3.3952.43
Testomonial Categories /wp-admin/edit-tags.php?taxonomy=stars_testimonial_cat&post_type=stars_testimonial3.3445.22
Recommended Plugins /wp-admin/edit.php?post_type=stars_testimonial&page=recommended-plugins3.741,898.11
Upgrade to Pro /wp-admin/edit.php?post_type=stars_testimonial&page=all-shortcodes&task=upgrade-to-pro3.5039.10

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 145 new files
Database: 1 new table, 9 new options
New tables
wp_star_testimonial_settings
New WordPress options
stars-testimonials_show_affiliate_box_after
starsTestimonials_show_upgrade_box_after
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
stars-testimonials_show_review_box_after

Browser metrics Passed 4 tests

This is an overview of browser requirements for Free Responsive Testimonials, Social Proof Reviews, and Customer Reviews - Stars Testimonials
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲12413.59 ▼0.816.11 ▲4.1139.72 ▼3.80
Dashboard /wp-admin2,246 ▲404.88 ▲0.0297.57 ▼14.0140.71 ▼0.75
Posts /wp-admin/edit.php2,129 ▲432.02 ▲0.0334.43 ▼4.7034.57 ▼1.25
Add New Post /wp-admin/post-new.php1,549 ▲1517.88 ▼5.29681.13 ▲4.5062.44 ▲12.67
Media Library /wp-admin/upload.php1,431 ▲434.21 ▲0.04109.14 ▼1.2847.89 ▲1.87
Collect Testimonials /wp-admin/edit.php?post_type=stars_testimonial&page=collect_review_page1,2093.8683.3282.47
All Testimonials /wp-admin/edit.php?post_type=stars_testimonial1,4469.81283.6557.93
All Widget Shortcodes /wp-admin/edit.php?post_type=stars_testimonial&page=all-shortcodes1,56512.95273.8997.74
Testomonial Categories /wp-admin/edit-tags.php?taxonomy=stars_testimonial_cat&post_type=stars_testimonial1,3022.1326.3029.68
Recommended Plugins /wp-admin/edit.php?post_type=stars_testimonial&page=recommended-plugins1,4644.0158.3179.07
Upgrade to Pro /wp-admin/edit.php?post_type=stars_testimonial&page=all-shortcodes&task=upgrade-to-pro1,8694.2481.81108.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_star_testimonial_settings
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • starsTestimonials_show_upgrade_box_after
    • stars-testimonials_show_affiliate_box_after
    • can_compress_scripts
    • stars-testimonials_show_review_box_after
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/stars-testimonials-with-slider-and-masonry-grid/upgrade-to-pro.php:7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/stars-testimonials-with-slider-and-masonry-grid/recommended-plugins.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stars-testimonials-with-slider-and-masonry-grid/class-upgrade-box.php:7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin-install.php' (include_path='.:/usr/share/php') in wp-content/plugins/stars-testimonials-with-slider-and-masonry-grid/recommended-plugins.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/stars-testimonials-with-slider-and-masonry-grid/recommended-plugins.php on line 3

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

stars-testimonials-with-slider-and-masonry-grid/st.php 69% from 13 tests

The main PHP script in "Free Responsive Testimonials, Social Proof Reviews, and Customer Reviews - Stars Testimonials" version 3.2.9 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("stars-testimonials-with-slider-and-masonry-grid.php" instead of "st.php")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin11,135 lines of code in 96 files:
LanguageFilesBlank linesComment linesLines of code
PHP594574216,257
CSS14169512,267
JavaScript141448921
SVG811912
PO File1337373778

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity38.00
▷ Minimum class complexity2.00
▷ Maximum class complexity222.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods72
▷ Static methods22.78%
▷ Public methods6995.83%
▷ Protected methods22.78%
▷ Private methods11.39%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 0.30MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/admin/agency-price.png37.09KB15.96KB▼ 56.98%
images/admin/colorpicker_hsb_s.png1.14KB0.80KB▼ 29.97%
images/admin/basic-price-bg.png23.86KB13.49KB▼ 43.46%
images/admin/colorpicker_background.png1.85KB2.14KB0.00%
images/hand-holding-heart-solid.png1.70KB1.77KB0.00%