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.34MB] [CPU: ▼259.20ms] Passed 4 tests
A check of server-side resources used by Best Testimonial
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.10 ▲0.38 | 34.05 ▲13.90 |
Dashboard /wp-admin | 3.44 ▲0.39 | 46.66 ▲2.74 |
Posts /wp-admin/edit.php | 3.49 ▲0.39 | 44.20 ▲4.16 |
Add New Post /wp-admin/post-new.php | 5.72 ▲0.29 | 91.63 ▼1,036.97 |
Media Library /wp-admin/upload.php | 3.30 ▲0.29 | 33.95 ▼6.71 |
All Testimonials /wp-admin/edit.php?post_type=best_testimonial | 3.44 | 40.47 |
Settings /wp-admin/edit.php?post_type=best_testimonial&page=best_testimonial_settings | 3.30 | 34.91 |
Categories /wp-admin/edit-tags.php?taxonomy=best_testimonial_cats&post_type=best_testimonial | 3.33 | 39.05 |
About /wp-admin/edit.php?post_type=best_testimonial&page=best_testimonial_settings_info | 3.30 | 33.70 |
Add Testimonial /wp-admin/post-new.php?post_type=best_testimonial | 3.48 | 49.77 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 2 new options
New WordPress options |
---|
bestt_style_two |
bestt_style_one |
Browser metrics Passed 4 tests
An overview of browser requirements for Best Testimonial
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,074 ▲492 | 18.53 ▲2.87 | 13.64 ▲6.75 | 80.65 ▲35.29 |
Dashboard /wp-admin | 3,221 ▲368 | 8.30 ▲2.41 | 168.92 ▲38.23 | 107.52 ▲8.54 |
Posts /wp-admin/edit.php | 2,998 ▲292 | 4.37 ▲1.68 | 81.90 ▲9.69 | 96.61 ▲12.28 |
Add New Post /wp-admin/post-new.php | 1,904 ▲316 | 18.92 ▼2.51 | 348.34 ▲80.48 | 105.06 ▼4.99 |
Media Library /wp-admin/upload.php | 1,854 ▲79 | 4.88 ▼0.12 | 117.00 ▼20.12 | 106.84 ▼7.82 |
All Testimonials /wp-admin/edit.php?post_type=best_testimonial | 1,695 | 4.28 | 82.52 | 55.43 |
Settings /wp-admin/edit.php?post_type=best_testimonial&page=best_testimonial_settings | 3,084 | 5.32 | 128.83 | 79.65 |
Categories /wp-admin/edit-tags.php?taxonomy=best_testimonial_cats&post_type=best_testimonial | 2,009 | 4.37 | 81.98 | 69.81 |
About /wp-admin/edit.php?post_type=best_testimonial&page=best_testimonial_settings_info | 1,452 | 4.03 | 84.03 | 83.02 |
Add Testimonial /wp-admin/post-new.php?post_type=best_testimonial | 3,223 | 9.24 | 220.74 | 124.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 2 options
- bestt_style_one
- bestt_style_two
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/best-testimonial/public/partials/best-testimonial-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/best-testimonial/admin/partials/best-testimonial-admin-display-info.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/best-testimonial/admin/partials/best-testimonial-admin-display.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: testimonial slider, reviews, best testimonial, testimonials
best-testimonial/best-testimonial.php Passed 13 tests
The main PHP script in "Best Testimonial" version 1.0.2 is automatically included on every request by WordPress
96 characters long description:
Very simple and powerful testimonial system for wordpress website. Customizable & user friendly.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin8,586 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 41 | 57 | 6,357 |
PHP | 15 | 343 | 847 | 1,177 |
SVG | 2 | 0 | 3 | 916 |
JavaScript | 4 | 8 | 15 | 79 |
Sass | 1 | 5 | 0 | 56 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 13.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 2 | 2.67% |
▷ Public methods | 70 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.67% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/bg.png | 152.80KB | 64.26KB | ▼ 57.94% |
public/img/testimonial-bg.png | 3.87KB | 1.20KB | ▼ 69.05% |
public/img/quote.png | 0.89KB | 1.14KB | 0.00% |