Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.81ms] Passed 4 tests
A check of server-side resources used by SM Testimonial Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 37.57 ▲2.26 |
Dashboard /wp-admin | 3.36 ▲0.02 | 46.61 ▼10.90 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 41.97 ▼10.43 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 81.40 ▼4.16 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.36 ▲7.37 |
All Testimonials /wp-admin/edit.php?post_type=testimonials | 3.33 | 33.86 |
shortcode /wp-admin/edit.php?post_type=testimonials&page=shortcode | 3.25 | 30.85 |
Add Testimonial /wp-admin/post-new.php?post_type=testimonials | 3.40 | 44.46 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SM Testimonial Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲97 | 14.11 ▼0.06 | 5.08 ▲3.45 | 43.92 ▲4.19 |
Dashboard /wp-admin | 2,226 ▲45 | 5.62 ▼0.00 | 82.41 ▼13.67 | 35.03 ▼7.26 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.95 ▼0.05 | 34.39 ▼5.24 | 34.36 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,552 ▲23 | 23.26 ▲0.26 | 673.64 ▼22.23 | 52.26 ▼37.70 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.10 ▼0.11 | 110.32 ▲4.34 | 44.58 ▼1.48 |
All Testimonials /wp-admin/edit.php?post_type=testimonials | 1,119 | 1.97 | 30.04 | 27.86 |
shortcode /wp-admin/edit.php?post_type=testimonials&page=shortcode | 798 | 2.03 | 23.49 | 26.55 |
Add Testimonial /wp-admin/post-new.php?post_type=testimonials | 2,247 | 7.60 | 162.75 | 62.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sm-testimonial-slider/sm-testimonials.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/sm-testimonial-slider/inc/base/sm-testimonials-slider.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== sm-testimonial-slider ===
)
sm-testimonial-slider/sm-testimonials.php 85% from 13 tests
The primary PHP file in "SM Testimonial Slider" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("sm-testimonial-slider.php" instead of "sm-testimonials.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected351 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 82 | 34 | 280 |
CSS | 2 | 0 | 2 | 70 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 11 | 73.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 5.81KB | 2.73KB | ▼ 52.94% |