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
- The plugin cannot be installed
- > Warning in wp-content/plugins/smart-testimonials/smart_testimonail.php+36
Use of undefined constant FAQ_VER - assumed 'FAQ_VER' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.71ms] Passed 4 tests
Server-side resources used by Smart Testimonials plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.07 ▼35.83 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.54 ▼40.58 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.82 ▼40.61 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.06 ▼97.82 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.76 ▼29.90 |
Add New Testimonial /wp-admin/post-new.php?post_type=asp_testi | 2.05 | 5.39 |
Categories /wp-admin/edit-tags.php?taxonomy=asp_testi_cat&post_type=asp_testi | 2.05 | 6.09 |
Settings /wp-admin/edit.php?post_type=asp_testi&page=asp_testi-options | 2.05 | 5.22 |
Instructions /wp-admin/edit.php?post_type=asp_testi&page=asp_testi-instructions | 2.05 | 6.66 |
All Testimonials /wp-admin/edit.php?post_type=asp_testi | 2.05 | 5.32 |
Tags /wp-admin/edit-tags.php?taxonomy=asp_testi_tag&post_type=asp_testi | 2.05 | 5.95 |
Sort Testimonials /wp-admin/edit.php?post_type=asp_testi&page=asp_testi-sort | 2.05 | 5.30 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_smart_testimonial_widget |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics 75% from 4 tests
Smart Testimonials plugin: an overview of browser usage
Having an awesome user experience is important, so please improve the following
- Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 33,162 on /wp-admin/edit.php?post_type=asp_testi&page=asp_testi-options)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲135 | 13.78 ▼0.80 | 1.63 ▲0.06 | 40.00 ▼0.93 |
Dashboard /wp-admin | 2,268 ▲77 | 5.10 ▲0.21 | 108.40 ▲7.73 | 69.81 ▲28.84 |
Posts /wp-admin/edit.php | 2,152 ▲63 | 2.33 ▲0.30 | 37.94 ▲4.03 | 37.11 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,586 ▲53 | 18.53 ▼5.01 | 642.27 ▼15.51 | 41.69 ▼17.26 |
Media Library /wp-admin/upload.php | 1,441 ▲53 | 4.46 ▲0.26 | 104.40 ▲2.52 | 80.04 ▲36.57 |
Add New Testimonial /wp-admin/post-new.php?post_type=asp_testi | 2,462 | 8.01 | 190.90 | 117.40 |
Categories /wp-admin/edit-tags.php?taxonomy=asp_testi_cat&post_type=asp_testi | 1,328 | 2.15 | 28.76 | 28.71 |
Settings /wp-admin/edit.php?post_type=asp_testi&page=asp_testi-options | 33,162 | 6.25 | 307.80 | 40.93 |
Instructions /wp-admin/edit.php?post_type=asp_testi&page=asp_testi-instructions | 1,030 | 2.04 | 26.29 | 28.95 |
All Testimonials /wp-admin/edit.php?post_type=asp_testi | 1,140 | 2.30 | 34.53 | 30.87 |
Tags /wp-admin/edit-tags.php?taxonomy=asp_testi_tag&post_type=asp_testi | 1,303 | 2.14 | 28.32 | 28.26 |
Sort Testimonials /wp-admin/edit.php?post_type=asp_testi&page=asp_testi-sort | 847 | 2.04 | 26.60 | 24.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_smart_testimonial_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=asp_testi&page=asp_testi-sort
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=asp_testi&page=asp_testi-sort
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 27 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=asp_testi&page=asp_testi-sort
- > Warning in wp-content/plugins/smart-testimonials/smart_testimonail.php+212
Use of undefined constant FAQ_VER - assumed 'FAQ_VER' (this will throw an Error in a future version of PHP)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=asp_testi&page=asp_testi-sort
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the asp_testi_front handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/smart-testimonials/pie/PIE.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/smart-testimonials/smart_testimonail.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-testimonials/meta_box.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/smart-testimonials/roundit.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/smart-testimonials/mutiple_testimonial_shortcode.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/smart-testimonials/class.widget_cat.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: A description for screenshot #5 is required in smart-testimonials/assets to your readme.txt
smart-testimonials/smart_testimonail.php 85% from 13 tests
"Smart Testimonials plugin" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smart-testimonials.php" instead of "smart_testimonail.php")
- Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)
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
Good job! No executable or dangerous file extensions detected21,034 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 3,728 | 2,711 | 18,481 |
PHP | 6 | 314 | 243 | 1,339 |
CSS | 4 | 66 | 56 | 1,214 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 29.33 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin_images/faq_menu.png | 3.20KB | 0.55KB | ▼ 82.84% |
inc/img/faq_admin_icon.png | 4.19KB | 1.29KB | ▼ 69.18% |