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
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/sas-web-testimonials-slider/lib/widgets.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; widget_testimonials has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼51.61ms] Passed 4 tests
A check of server-side resources used by SAS WEB Testimonials Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.39 | 4.63 ▼35.66 |
Dashboard /wp-admin | 2.14 ▼1.21 | 6.33 ▼43.49 |
Posts /wp-admin/edit.php | 2.14 ▼1.26 | 6.16 ▼41.90 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.79 | 7.89 ▼85.40 |
Media Library /wp-admin/upload.php | 2.14 ▼1.13 | 6.22 ▼28.36 |
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=testimonial | 2.14 | 9.25 |
Testimonials /wp-admin/edit.php?post_type=testimonial | 2.14 | 6.58 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2.14 | 7.17 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_widget_testimonials |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SAS WEB Testimonials Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 14.15 ▼0.20 | 2.85 ▲1.26 | 39.28 ▼4.43 |
Dashboard /wp-admin | 2,235 ▲58 | 5.66 ▲0.11 | 91.29 ▲3.43 | 41.29 ▼2.69 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.02 ▲0.03 | 41.66 ▲5.14 | 44.78 ▲5.09 |
Add New Post /wp-admin/post-new.php | 1,557 ▲22 | 23.16 ▲4.95 | 646.46 ▲38.44 | 69.03 ▲9.52 |
Media Library /wp-admin/upload.php | 1,437 ▲40 | 4.28 ▲0.02 | 97.11 ▼6.64 | 45.85 ▲0.43 |
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=testimonial | 1,308 | 2.12 | 30.85 | 34.12 |
Testimonials /wp-admin/edit.php?post_type=testimonial | 1,125 | 1.96 | 31.40 | 33.99 |
Settings /wp-admin/sasweb-testimonials.php | 26 | 0.42 | 0.08 | 13.71 |
Add New /wp-admin/post-new.php?post_type=testimonial | 1,785 | 3.52 | 63.36 | 36.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/sas-web-testimonials-slider/lib/widgets.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; widget_testimonials has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_widget_testimonials
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > Deprecated in wp-content/plugins/sas-web-testimonials-slider/lib/widgets.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; widget_testimonials has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in widget_testimonials is deprecated since version 4.3.0! Use __construct() instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sas-web-testimonials-slider/sasweb-testimonials.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sas-web-testimonials-slider/lib/widgets.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sas-web-testimonials-slider/lib/shortcode.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/sasweb-testimonials.php
- > Network (severe)
wp-admin/sasweb-testimonials.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (testimonial_settings.png), #2 (widget_area.png), #3 (testimonial_body.png)
sas-web-testimonials-slider/sasweb-testimonials.php 92% from 13 tests
Analyzing the main PHP file in "SAS WEB Testimonials Slider" version 1.2
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("sas-web-testimonials-slider.php" instead of "sasweb-testimonials.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected741 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 101 | 63 | 492 |
CSS | 2 | 40 | 11 | 198 |
JavaScript | 2 | 7 | 13 | 51 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.25MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
widget_area.png | 34.76KB | 10.31KB | ▼ 70.33% |
assets/img/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
testimonial_body.png | 141.06KB | 50.25KB | ▼ 64.37% |
images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
testimonial_settings.png | 74.74KB | 23.64KB | ▼ 68.37% |