78% mi-testimonial-slider

Code Review | Mi Testimonial Slider

WordPress plugin Mi Testimonial Slider scored78%from 54 tests.

About plugin

  • Plugin page: mi-testimonial-sl...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-4.9
  • WordPress version: 6.3.1
  • First release: Mar 7, 2017
  • Latest release: Nov 29, 2017
  • Number of updates: 4
  • Update frequency: every 66.8 days
  • Top authors: miplugins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,956 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼10.83ms] Passed 4 tests

A check of server-side resources used by Mi Testimonial Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.52 ▼3.47
Dashboard /wp-admin3.39 ▲0.0543.59 ▼15.10
Posts /wp-admin/edit.php3.42 ▲0.0745.35 ▼1.52
Add New Post /wp-admin/post-new.php6.10 ▲0.2178.77 ▼23.21
Media Library /wp-admin/upload.php3.33 ▲0.1032.14 ▲0.12
Get Premium /wp-admin/admin.php?page=mi_testimonial_premium3.2730.62
Mi Testimonial /wp-admin/admin.php?page=mi-testimonial3.2825.03
Mi Others /wp-admin/admin.php?page=mi_testimonial_others3.2728.56

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
_mi_testimonial_items
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Mi Testimonial Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲17013.87 ▼0.495.41 ▲3.5139.23 ▲0.40
Dashboard /wp-admin2,260 ▲685.18 ▼0.67115.81 ▲10.1643.56 ▼0.24
Posts /wp-admin/edit.php2,148 ▲592.33 ▲0.3341.08 ▼6.4738.30 ▲3.02
Add New Post /wp-admin/post-new.php1,557 ▲3523.20 ▼0.13670.44 ▲44.0939.10 ▼10.13
Media Library /wp-admin/upload.php1,445 ▲544.52 ▲0.3799.13 ▲1.7343.34 ▲0.71
Get Premium /wp-admin/admin.php?page=mi_testimonial_premium9012.0527.9229.36
Mi Testimonial /wp-admin/admin.php?page=mi-testimonial8812.0428.2729.68
Mi Others /wp-admin/admin.php?page=mi_testimonial_others8552.0426.1130.06

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • _mi_testimonial_items
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/mi-testimonial-slider/public/styles/grid.php
    • > /wp-content/plugins/mi-testimonial-slider/public/display_mode/style_one.php
    • > /wp-content/plugins/mi-testimonial-slider/public/styles/slider.php
  • 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: mi_testimonial_desktop_number_of_grid in wp-content/plugins/mi-testimonial-slider/public/styles/slider.php on line 3
    • > PHP Notice
      Undefined variable: mi_testimonial_block_para in wp-content/plugins/mi-testimonial-slider/public/display_mode/style_one.php on line 3
    • > PHP Notice
      Undefined variable: testimonial in wp-content/plugins/mi-testimonial-slider/public/display_mode/style_one.php on line 10
    • > PHP Notice
      Undefined variable: mi_testimonial_grid_wrapper in wp-content/plugins/mi-testimonial-slider/public/styles/grid.php on line 2
    • > PHP Notice
      Undefined variable: mi_testimonial_default_media_block in wp-content/plugins/mi-testimonial-slider/public/display_mode/style_one.php on line 7
    • > PHP Notice
      Trying to get property 'author_name' of non-object in wp-content/plugins/mi-testimonial-slider/public/display_mode/style_one.php on line 10
    • > PHP Notice
      Undefined variable: mi_testimonial_wrap_class_default in wp-content/plugins/mi-testimonial-slider/public/styles/grid.php on line 2
    • > PHP Notice
      Undefined variable: mi_testimonial_tab_number_of_grid in wp-content/plugins/mi-testimonial-slider/public/styles/slider.php on line 3
    • > PHP Notice
      Undefined variable: testimonial in wp-content/plugins/mi-testimonial-slider/public/display_mode/style_one.php on line 14
    • > PHP Notice
      Undefined variable: mi_testimonial_testimonials in wp-content/plugins/mi-testimonial-slider/public/styles/slider.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === mi-testimonial-slider === )
You can take inspiration from this readme.txt

mi-testimonial-slider/mi-testimonial-slider.php 92% from 13 tests

The main PHP file in "Mi Testimonial Slider" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin6,078 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47718952,867
CSS3318941,788
PHP194605911,406
SVG15017

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.71
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods44
▷ Static methods49.09%
▷ Public methods3681.82%
▷ Protected methods00.00%
▷ Private methods818.18%
Functions4
▷ Named functions4100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/Mi-Logo-Slider-Pro-Featured.png11.04KB11.11KB0.00%
public/img/quote.png1.18KB0.31KB▼ 73.92%
public/img/quote-small.png1.13KB0.28KB▼ 75.15%