72% testimonial-review

Code Review | Testimonial & Review

WordPress plugin Testimonial & Review scored72%from 54 tests.

About plugin

  • Plugin page: testimonial-review
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: May 3, 2018
  • Latest release: Nov 11, 2023
  • Number of updates: 21
  • Update frequency: every 97.2 days
  • Top authors: pickelements (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,140 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.21ms] Passed 4 tests

Analyzing server-side resources used by Testimonial & Review
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.68 ▼7.94
Dashboard /wp-admin3.36 ▲0.0145.98 ▼17.06
Posts /wp-admin/edit.php3.41 ▲0.0546.36 ▲1.07
Add New Post /wp-admin/post-new.php5.95 ▲0.06101.35 ▲7.62
Media Library /wp-admin/upload.php3.28 ▲0.0535.20 ▼0.92
Categories /wp-admin/edit-tags.php?taxonomy=testimonial-tax&post_type=testimonial-review3.2733.82
All Testimonials /wp-admin/edit.php?post_type=testimonial-review3.2928.07
All Shortcodes /wp-admin/edit.php?post_type=testimonialshortcode3.2930.46
Generate Shortcode /wp-admin/post-new.php?post_type=testimonialshortcode3.3347.67
Add Testimonial /wp-admin/post-new.php?post_type=testimonial-review3.4255.49

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Testimonial & Review
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14313.41 ▼0.928.24 ▲6.5343.32 ▼0.16
Dashboard /wp-admin2,234 ▲565.58 ▼0.0395.54 ▼15.7539.33 ▼1.45
Posts /wp-admin/edit.php2,136 ▲361.95 ▲0.0140.14 ▲4.4535.94 ▲2.47
Add New Post /wp-admin/post-new.php1,555 ▲2923.44 ▲0.16607.94 ▼89.3954.79 ▼9.31
Media Library /wp-admin/upload.php1,436 ▲334.18 ▼0.1197.51 ▼4.7840.83 ▼3.25
Categories /wp-admin/edit-tags.php?taxonomy=testimonial-tax&post_type=testimonial-review1,3072.1226.9528.47
All Testimonials /wp-admin/edit.php?post_type=testimonial-review1,1722.2239.7131.85
All Shortcodes /wp-admin/edit.php?post_type=testimonialshortcode1,1372.2233.4829.69
Generate Shortcode /wp-admin/post-new.php?post_type=testimonialshortcode5,5234.52163.4647.40
Add Testimonial /wp-admin/post-new.php?post_type=testimonial-review2,4967.88174.2467.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=testimonialshortcode
    • > Notice in wp-content/plugins/testimonial-review/libs/post-types/testimonial-review-post-type.php+247
    Undefined index: order

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/testimonial-review/testimonial-review.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=testimonial-review
    • > Network (severe)
    wp-content/plugins/testimonial-review/public/js/jquery.raty-fa.js?ver=0.1.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #7 (screenshot-7), #8 (screenshot-8)
You can look at the official readme.txt

testimonial-review/testimonial-review.php 92% from 13 tests

"Testimonial & Review" version 1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 254 characters long)

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
Good job! No executable or dangerous file extensions detected5,919 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP112681192,947
JavaScript44699231,890
SVG100565
CSS51129517

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin