78% testimonial-maker

Code Review | Testimonial - Customer Feedback, client testimonial, Review

WordPress plugin Testimonial - Customer Feedback, client testimonial, Review scored78%from 54 tests.

About plugin

  • Plugin page: testimonial-maker
  • Plugin version: 1.1.21
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Mar 12, 2017
  • Latest release: Oct 20, 2023
  • Number of updates: 180
  • Update frequency: every 13.4 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /44,266 total downloads

Benchmarks

Plugin footprint 82% 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: ▼10.69ms] 75% from 4 tests

Analyzing server-side resources used by Testimonial - Customer Feedback, client testimonial, Review
The following require your attention
  • CPU: You should keep total CPU usage under 500.00ms (currently 620.52ms on /wp-admin/edit.php?post_type=testimonial-maker&page=tmonial-featured-page)
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0934.24 ▼3.78
Dashboard /wp-admin3.39 ▲0.0445.97 ▼16.91
Posts /wp-admin/edit.php3.45 ▲0.0948.34 ▲1.99
Add New Post /wp-admin/post-new.php5.98 ▲0.0980.77 ▼21.20
Media Library /wp-admin/upload.php3.32 ▲0.0834.03 ▼0.86
Featured Plugin /wp-admin/edit.php?post_type=testimonial-maker&page=tmonial-featured-page3.45620.52
All Testimonial /wp-admin/edit.php?post_type=testimonial-maker3.3637.12
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial-maker3.4346.50
Testimonial Setting /wp-admin/edit.php?post_type=testimonial-maker&page=tmonial-setting-page3.4030.74

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Testimonial - Customer Feedback, client testimonial, Review
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.72 ▲0.371.76 ▲0.1943.98 ▲5.01
Dashboard /wp-admin2,230 ▲505.64 ▼0.2281.78 ▼3.5236.79 ▼3.59
Posts /wp-admin/edit.php2,132 ▲322.02 ▲0.0239.05 ▲5.5835.59 ▼3.78
Add New Post /wp-admin/post-new.php1,555 ▲2922.82 ▼0.83643.13 ▼94.0558.37 ▼4.79
Media Library /wp-admin/upload.php1,435 ▲414.24 ▼0.00101.69 ▲1.4644.34 ▲1.42
Featured Plugin /wp-admin/edit.php?post_type=testimonial-maker&page=tmonial-featured-page3,3401.7628.66226.51
All Testimonial /wp-admin/edit.php?post_type=testimonial-maker1,1081.9829.6930.32
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial-maker2,2497.68161.5962.01
Testimonial Setting /wp-admin/edit.php?post_type=testimonial-maker&page=tmonial-setting-page1,4131.9432.6651.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/testimonial-maker/featured-plugins/featured-plugins.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/testimonial-maker/our-theme/awp-theme.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=testimonial-maker&page=tmonial-featured-page
    • > Network (severe)
    wp-content/plugins/testimonial-maker/css/bootstrap.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=testimonial-maker&page=tmonial-featured-page
    • > Network (severe)
    wp-content/plugins/testimonial-maker/js/bootstrap.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=testimonial-maker&page=tmonial-featured-page
    • > Network (severe)
    wp-content/plugins/testimonial-maker/js/featured-plugins/acl-media-upload-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=testimonial-maker&page=tmonial-featured-page
    • > Network (severe)
    wp-content/plugins/testimonial-maker/js/featured-plugins/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=testimonial-maker&page=tmonial-featured-page
    • > Network (severe)
    wp-content/plugins/testimonial-maker/featured-plugins/fonts/bootstrap/glyphicons-halflings-regular-2.html - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=testimonial-maker&page=tmonial-featured-page
    • > Network (severe)
    wp-content/plugins/testimonial-maker/featured-plugins/fonts/bootstrap/glyphicons-halflings-regular-3.html - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: easy testimonial, client feedback, client testimonial, testimonials, testimonial

testimonial-maker/testimonial-maker.php Passed 13 tests

"Testimonial - Customer Feedback, client testimonial, Review" version 1.1.21's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
41 characters long description:
A very easy Plugin for make testimonials.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected26,412 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
CSS172,81411720,747
JavaScript58433463,331
PHP5100631,228
SVG200973
PO File15858133

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods981.82%
▷ Protected methods218.18%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.75MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
include/img/tml-plugin-img.png53.96KB21.15KB▼ 60.80%
include/img/templet-2.png106.53KB41.36KB▼ 61.18%
include/img/tml-testi-img.png272.04KB100.69KB▼ 62.99%
our-theme/img/aneeq-premium.png165.42KB57.84KB▼ 65.04%
include/img/templet-3.png65.69KB25.79KB▼ 60.75%