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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.52 ▼3.47 |
Dashboard /wp-admin | 3.39 ▲0.05 | 43.59 ▼15.10 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 45.35 ▼1.52 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 78.77 ▼23.21 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 32.14 ▲0.12 |
Get Premium /wp-admin/admin.php?page=mi_testimonial_premium | 3.27 | 30.62 |
Mi Testimonial /wp-admin/admin.php?page=mi-testimonial | 3.28 | 25.03 |
Mi Others /wp-admin/admin.php?page=mi_testimonial_others | 3.27 | 28.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲170 | 13.87 ▼0.49 | 5.41 ▲3.51 | 39.23 ▲0.40 |
Dashboard /wp-admin | 2,260 ▲68 | 5.18 ▼0.67 | 115.81 ▲10.16 | 43.56 ▼0.24 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.33 ▲0.33 | 41.08 ▼6.47 | 38.30 ▲3.02 |
Add New Post /wp-admin/post-new.php | 1,557 ▲35 | 23.20 ▼0.13 | 670.44 ▲44.09 | 39.10 ▼10.13 |
Media Library /wp-admin/upload.php | 1,445 ▲54 | 4.52 ▲0.37 | 99.13 ▲1.73 | 43.34 ▲0.71 |
Get Premium /wp-admin/admin.php?page=mi_testimonial_premium | 901 | 2.05 | 27.92 | 29.36 |
Mi Testimonial /wp-admin/admin.php?page=mi-testimonial | 881 | 2.04 | 28.27 | 29.68 |
Mi Others /wp-admin/admin.php?page=mi_testimonial_others | 855 | 2.04 | 26.11 | 30.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
- > PHP Notice
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 771 | 895 | 2,867 |
CSS | 3 | 318 | 94 | 1,788 |
PHP | 19 | 460 | 591 | 1,406 |
SVG | 1 | 5 | 0 | 17 |
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 code | 0.26 |
Average class complexity | 11.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 4 | 9.09% |
▷ Public methods | 36 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 18.18% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/Mi-Logo-Slider-Pro-Featured.png | 11.04KB | 11.11KB | 0.00% |
public/img/quote.png | 1.18KB | 0.31KB | ▼ 73.92% |
public/img/quote-small.png | 1.13KB | 0.28KB | ▼ 75.15% |