Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼17.94ms] Passed 4 tests
A check of server-side resources used by TR Post Slider Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.16 ▼53.76 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.07 ▼6.85 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.76 ▼3.20 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.44 ▼7.94 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.95 ▲3.07 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_tr_ps_widget |
can_compress_scripts |
widget_recent-comments |
widget_tr_pwt_widget |
widget_theysaidso_widget |
widget_tr_fs_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for TR Post Slider Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.62 ▼1.16 | 6.43 ▲2.79 | 43.79 ▼20.74 |
Dashboard /wp-admin | 2,203 ▲21 | 5.86 ▼0.18 | 122.69 ▼26.18 | 46.96 ▼12.54 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▼0.03 | 36.50 ▼6.07 | 32.51 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.09 ▲5.65 | 656.20 ▼33.74 | 54.16 ▼0.55 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▲0.07 | 103.24 ▲1.55 | 41.33 ▼0.72 |
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
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- widget_tr_ps_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_tr_pwt_widget
- widget_tr_fs_widget
Smoke tests 75% 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 50% 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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tr-post-slider-widget/widget-post-featured-image.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/tr-post-slider-widget/tr-post-slider-widget.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tr-post-slider-widget/widget-post-content.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tr-post-slider-widget/widget-post-with-thumbnail.php:2
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: post slider widget, post slider, wordpress post, carousel post widget, post widget...
tr-post-slider-widget/tr-post-slider-widget.php Passed 13 tests
The primary PHP file in "TR Post Slider Widget" version 3.2 is used by WordPress to initiate all plugin functionality
81 characters long description:
Using this free post slider widget plugin you can show your posts in a slideshow.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,283 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 123 | 121 | 1,346 |
PHP | 4 | 81 | 11 | 754 |
CSS | 2 | 5 | 8 | 183 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 48.33 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 12.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/left-arrow.png | 0.30KB | 0.35KB | 0.00% |
img/right-arrow.png | 0.30KB | 0.35KB | 0.00% |