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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.12 ▼30.98 |
Dashboard /wp-admin | 2.16 ▼1.18 | 6.05 ▼55.73 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 7.38 ▼38.76 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 6.88 ▼90.64 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.40 ▼28.81 |
Testimonials /wp-admin/admin.php?page=testimonial-master/testimonial_master.php | 2.16 | 5.81 |
Help /wp-admin/admin.php?page=tm_help | 2.16 | 7.85 |
TM About /wp-admin/index.php?page=tm_about | 2.16 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.14 ▼0.44 | 1.95 ▲0.37 | 38.78 ▼2.22 |
Dashboard /wp-admin | 2,222 ▲41 | 5.62 ▼0.10 | 90.81 ▼9.44 | 41.38 ▲2.48 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.00 ▼0.02 | 39.14 ▲3.08 | 35.96 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.53 ▲0.03 | 613.86 ▼78.99 | 55.49 ▲0.54 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.16 ▼0.06 | 94.91 ▼10.08 | 44.14 ▼3.82 |
Testimonials /wp-admin/admin.php?page=testimonial-master/testimonial_master.php | 997 | 2.03 | 23.20 | 33.07 |
Help /wp-admin/admin.php?page=tm_help | 1,167 | 2.03 | 28.65 | 38.88 |
TM About /wp-admin/index.php?page=tm_about | 929 | 1.99 | 23.05 | 52.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 79 | 294 | 924 |
LESS | 2 | 21 | 2 | 137 |
JavaScript | 1 | 5 | 0 | 61 |
CSS | 2 | 0 | 0 | 2 |
Markdown | 1 | 0 | 0 | 1 |
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 code | 0.22 |
Average class complexity | 8.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 8 | 23.53% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
5 PNG files occupy 0.19MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1 (1).png | 65.58KB | 45.23KB | ▼ 31.02% |
assets/screenshot-3.png | 20.51KB | 12.15KB | ▼ 40.76% |
assets/screenshot-1.png | 65.58KB | 45.23KB | ▼ 31.02% |
assets/screenshot-4.png | 8.69KB | 5.95KB | ▼ 31.59% |
assets/screenshot-2.png | 38.17KB | 24.64KB | ▼ 35.44% |