10% testimonial-master

Code Review | Testimonial Master

WordPress plugin Testimonial Master scored10%from 54 tests.

About plugin

  • Plugin page: testimonial-master
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 26, 2014
  • Latest release: Jun 15, 2016
  • Number of updates: 65
  • Update frequency: every 16.7 days
  • Top authors: fpcorso (96.92%)PadLabs (4.62%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,928 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/testimonial-master/php/tm_widgets.php+9
    Methods with the same name as their class will not be constructors in a future version of PHP; TMRandomWidget has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼54.03ms] Passed 4 tests

Analyzing server-side resources used by Testimonial Master
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.12 ▼30.98
Dashboard /wp-admin2.16 ▼1.186.05 ▼55.73
Posts /wp-admin/edit.php2.16 ▼1.197.38 ▼38.76
Add New Post /wp-admin/post-new.php2.16 ▼3.736.88 ▼90.64
Media Library /wp-admin/upload.php2.16 ▼1.076.40 ▼28.81
Testimonials /wp-admin/admin.php?page=testimonial-master/testimonial_master.php2.165.81
Help /wp-admin/admin.php?page=tm_help2.167.85
TM About /wp-admin/index.php?page=tm_about2.167.53

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
mlw_tm_version
widget_recent-posts
theysaidso_admin_options
mlw_advert_shows
db_upgraded
widget_tmrandomwidget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Testimonial Master
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.14 ▼0.441.95 ▲0.3738.78 ▼2.22
Dashboard /wp-admin2,222 ▲415.62 ▼0.1090.81 ▼9.4441.38 ▲2.48
Posts /wp-admin/edit.php2,127 ▲272.00 ▼0.0239.14 ▲3.0835.96 ▲1.02
Add New Post /wp-admin/post-new.php1,548 ▲2223.53 ▲0.03613.86 ▼78.9955.49 ▲0.54
Media Library /wp-admin/upload.php1,427 ▲274.16 ▼0.0694.91 ▼10.0844.14 ▼3.82
Testimonials /wp-admin/admin.php?page=testimonial-master/testimonial_master.php9972.0323.2033.07
Help /wp-admin/admin.php?page=tm_help1,1672.0328.6538.88
TM About /wp-admin/index.php?page=tm_about9291.9923.0552.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/testimonial-master/php/tm_widgets.php+9
    Methods with the same name as their class will not be constructors in a future version of PHP; TMRandomWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_tmrandomwidget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/index.php?page=tm_about
    • > Deprecated in wp-content/plugins/testimonial-master/php/tm_widgets.php+9
    Methods with the same name as their class will not be constructors in a future version of PHP; TMRandomWidget has a deprecated constructor
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/index.php?page=tm_about
    • > Deprecated in wp-content/plugins/testimonial-master/testimonial_master.php+90
    Function create_function() is deprecated
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/index.php?page=tm_about
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in TMRandomWidget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/index.php?page=tm_about
    • > Notice in wp-content/plugins/testimonial-master/php/tm_about_page.php+59
    Trying to get property 'version' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/testimonial-master/assets/index.php
    • > /wp-content/plugins/testimonial-master/index.php
    • > /wp-content/plugins/testimonial-master/languages/index.php
    • > /wp-content/plugins/testimonial-master/css/index.php
    • > /wp-content/plugins/testimonial-master/php/index.php
    • > /wp-content/plugins/testimonial-master/js/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: testimonial, shortcode, review, user, testimonies...

testimonial-master/testimonial_master.php 85% from 13 tests

Analyzing the main PHP file in "Testimonial Master" version 0.2.1
Please take the time 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: Please rename the main PHP file in this plugin to the plugin slug ("testimonial-master.php" instead of "testimonial_master.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,125 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP1079294924
LESS2212137
JavaScript15061
CSS2002
Markdown1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.17
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods34
▷ Static methods823.53%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.19MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1 (1).png65.58KB45.23KB▼ 31.02%
assets/screenshot-3.png20.51KB12.15KB▼ 40.76%
assets/screenshot-1.png65.58KB45.23KB▼ 31.02%
assets/screenshot-4.png8.69KB5.95KB▼ 31.59%
assets/screenshot-2.png38.17KB24.64KB▼ 35.44%