83% my-superb-testimonials

Code Review | Free Responsive Testimonials and Customer Reviews - Superb Testimonials

WordPress plugin Free Responsive Testimonials and Customer Reviews - Superb Testimonials scored83%from 54 tests.

About plugin

  • Plugin page: my-superb-testimo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Sep 13, 2022
  • Latest release: Aug 4, 2023
  • Number of updates: 4
  • Update frequency: every 105.0 days
  • Top authors: gingerplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /259 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.88ms] Passed 4 tests

A check of server-side resources used by Free Responsive Testimonials and Customer Reviews - Superb Testimonials
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.52 ▲3.37
Dashboard /wp-admin3.37 ▲0.0749.55 ▼2.93
Posts /wp-admin/edit.php3.42 ▲0.0752.71 ▲0.26
Add New Post /wp-admin/post-new.php5.95 ▲0.0788.57 ▼12.21
Media Library /wp-admin/upload.php3.29 ▲0.0741.68 ▲5.05
Shortcodes /wp-admin/admin.php?page=superb-testimonials-short-codes3.4342.56
All Testimonials /wp-admin/admin.php?page=superb-testimonials3.3240.45
Categories /wp-admin/admin.php?page=superb-testimonials-categories3.3439.21

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Free Responsive Testimonials and Customer Reviews - Superb Testimonials
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17513.47 ▼0.9213.30 ▲11.4239.81 ▼3.31
Dashboard /wp-admin2,226 ▲495.63 ▲0.0491.78 ▲1.1038.49 ▼3.70
Posts /wp-admin/edit.php2,131 ▲282.05 ▲0.0036.56 ▼6.5834.33 ▼8.95
Add New Post /wp-admin/post-new.php1,574 ▲2723.39 ▲0.04687.02 ▼6.5955.79 ▲2.61
Media Library /wp-admin/upload.php1,434 ▲404.16 ▼0.05111.37 ▲3.5349.10 ▲2.48
Shortcodes /wp-admin/admin.php?page=superb-testimonials-short-codes1,4913.5755.3142.68
All Testimonials /wp-admin/admin.php?page=superb-testimonials1,0923.5658.14104.95
Categories /wp-admin/admin.php?page=superb-testimonials-categories1,2813.4248.3745.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/my-superb-testimonials/admin/partials/steps/add-new-testimonial.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/my-superb-testimonials/admin/partials/steps/signup-page.php:5

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 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add an image for screenshot #1 (Create your first shortcode using our shortcode builder)
The official readme.txt might help

my-superb-testimonials/superb-testimonials.php 85% from 13 tests

The main PHP script in "Free Responsive Testimonials and Customer Reviews - Superb Testimonials" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("my-superb-testimonials.php" instead of "superb-testimonials.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected6,506 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP253467322,904
CSS537422,248
JavaScript92212351,354

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity18.57
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods37.89%
▷ Public methods3386.84%
▷ Protected methods00.00%
▷ Private methods513.16%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/Frame.png12.76KB9.20KB▼ 27.95%
admin/images/welcome.png9.49KB4.49KB▼ 52.71%
admin/images/left-section.png66.10KB25.39KB▼ 61.59%
admin/images/payment-card-icons.png11.56KB4.49KB▼ 61.19%