Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.41ms] Passed 4 tests
Server-side resources used by Widget Post Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 46.46 ▲3.73 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.53 ▼5.24 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.53 ▲0.40 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 99.97 ▼9.89 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 37.32 ▲1.11 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_sp_widget_post_slider |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Widget Post Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.46 ▼0.92 | 9.27 ▲7.52 | 43.08 ▼0.29 |
Dashboard /wp-admin | 2,195 ▲15 | 5.56 ▼0.12 | 90.62 ▲0.32 | 39.18 ▼5.28 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.01 ▲0.01 | 39.07 ▲1.45 | 34.77 ▼2.05 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.36 ▲5.09 | 678.73 ▲76.37 | 57.05 ▼16.17 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.19 ▼0.06 | 99.68 ▲2.81 | 44.48 ▼2.63 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_sp_widget_post_slider
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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
Even though no errors were found, 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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/widget-post-slider/inc/functions.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: posts widget, category posts slider, widget, latest posts widget slider, widget slider post...
widget-post-slider/widget-post-slider.php Passed 13 tests
The main file in "Widget Post Slider" v. 1.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Widget Post Slider to display posts image in a slider from category.
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
Success! There were no dangerous files found in this plugin980 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 685 |
CSS | 4 | 14 | 4 | 154 |
PHP | 3 | 39 | 62 | 139 |
JavaScript | 1 | 2 | 14 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG images were found in this plugin