Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.37ms] Passed 4 tests
An overview of server-side resources used by WordPress Testimonial Plugin - HmTestimonial
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.28 ▼5.56 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.34 ▼2.62 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 42.40 ▼3.48 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 79.87 ▼13.83 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.88 ▲1.69 |
Add New /wp-admin/post-new.php?post_type=hm_testimonial | 3.43 | 49.85 |
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=hm_testimonial_category&post_type=hm_testimonial | 3.28 | 34.43 |
Manage Views /wp-admin/edit.php?post_type=hm_testimonial&page=hmt-manage-views | 3.30 | 33.31 |
Usage & Tutorial /wp-admin/edit.php?post_type=hm_testimonial&page=hmt-get-help | 3.27 | 31.46 |
All Testimonials /wp-admin/edit.php?post_type=hm_testimonial | 3.32 | 44.82 |
Server storage [IO: ▲4.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 241 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Testimonial Plugin - HmTestimonial
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲200 | 14.04 ▼0.55 | 5.02 ▲3.02 | 39.04 ▼6.76 |
Dashboard /wp-admin | 2,268 ▲80 | 5.08 ▲0.18 | 111.37 ▼6.08 | 38.92 ▼7.80 |
Posts /wp-admin/edit.php | 2,153 ▲64 | 2.28 ▲0.26 | 36.92 ▼2.46 | 30.73 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,574 ▲41 | 18.46 ▼4.59 | 636.07 ▼24.76 | 35.86 ▼14.55 |
Media Library /wp-admin/upload.php | 1,447 ▲56 | 4.41 ▲0.14 | 103.90 ▲2.30 | 42.28 ▼2.43 |
Add New /wp-admin/post-new.php?post_type=hm_testimonial | 2,511 | 7.80 | 215.49 | 70.35 |
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=hm_testimonial_category&post_type=hm_testimonial | 1,332 | 2.05 | 31.95 | 28.02 |
Manage Views /wp-admin/edit.php?post_type=hm_testimonial&page=hmt-manage-views | 1,014 | 1.97 | 25.99 | 35.47 |
Usage & Tutorial /wp-admin/edit.php?post_type=hm_testimonial&page=hmt-get-help | 1,463 | 9.81 | 278.23 | 75.96 |
All Testimonials /wp-admin/edit.php?post_type=hm_testimonial | 1,125 | 2.22 | 35.84 | 29.75 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/hm-testimonial/admin/view/hmt-help-usage.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Screenshots: Please add descriptions for these screenshots #2, #3, #4 in hm-testimonial/assets to your readme.txt
hm-testimonial/hm-testimonial.php Passed 13 tests
The main PHP file in "WordPress Testimonial Plugin - HmTestimonial" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
119 characters long description:
This Testimonial Plugin will display testimonials in your website page or post by using the shortcode: [hm_testimonial]
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected40,950 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 7,455 | 16,142 | 31,383 |
CSS | 16 | 122 | 50 | 2,820 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 15 | 36 | 36 | 1,796 |
LESS | 15 | 36 | 46 | 1,786 |
JavaScript | 6 | 42 | 66 | 253 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 77.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,171 | |
▷ Static methods | 173 | 14.77% |
▷ Public methods | 816 | 69.68% |
▷ Protected methods | 27 | 2.31% |
▷ Private methods | 328 | 28.01% |
Functions | 99 | |
▷ Named functions | 99 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 130 | |
▷ Global constants | 105 | 80.77% |
▷ Class constants | 25 | 19.23% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/css/images/bg_direction_nav.png | 1.82KB | 0.79KB | ▼ 56.38% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |