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 gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼257.65ms] Passed 4 tests
An overview of server-side resources used by Posts Slideshow Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▲0.29 | 38.29 ▲15.31 |
Dashboard /wp-admin | 3.23 ▲0.17 | 52.90 ▲11.35 |
Posts /wp-admin/edit.php | 3.34 ▲0.23 | 42.77 ▼2.62 |
Add New Post /wp-admin/post-new.php | 5.59 ▲0.16 | 92.13 ▼1,031.75 |
Media Library /wp-admin/upload.php | 3.17 ▲0.16 | 32.51 ▼7.56 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_posts_slideshow_widget |
posts_slideshow_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Posts Slideshow Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲182 | 16.09 ▲0.53 | 13.05 ▲1.90 | 49.86 ▲3.24 |
Dashboard /wp-admin | 2,929 ▲76 | 5.99 ▲0.16 | 142.51 ▲14.29 | 115.49 ▲9.47 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.68 ▼0.00 | 64.33 ▼2.50 | 95.82 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,856 ▲3 | 19.06 ▼0.07 | 356.52 ▼17.84 | 106.88 ▲3.44 |
Media Library /wp-admin/upload.php | 1,780 ▲5 | 5.01 ▼0.00 | 152.02 ▲10.91 | 112.46 ▼6.62 |
Posts Slideshow /wp-admin/posts-slideshow-widget.php | 26 | 0.90 | 0.53 | 10.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 1 option in the database
- widget_posts_slideshow_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/posts-slideshow-widget/includes/settings.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/posts-slideshow-widget/includes/class-posts-slideshow-widget.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/posts-slideshow-widget.php
- > Network (severe)
wp-admin/posts-slideshow-widget.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (screenshot-1.png Posts Slideshow Widget in action.), #2 (screenshot-2.png Posts Slideshow Widget plugin global Settings page.), #3 (screenshot-3.png Posts Slideshow Widget plugin widget options.)
posts-slideshow-widget/posts-slideshow-widget.php Passed 13 tests
The main file in "Posts Slideshow Widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
Side bar widget with slider (slideshow) of featured images from posts from a selected category
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,184 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 273 | 299 | 993 |
PO File | 1 | 42 | 48 | 89 |
CSS | 2 | 20 | 23 | 69 |
JavaScript | 1 | 0 | 10 | 33 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 75.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 24.39% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/image-not-found-300x300.png | 3.45KB | 1.74KB | ▼ 49.53% |
screenshot-3.png | 36.74KB | 12.99KB | ▼ 64.65% |
screenshot-2.png | 30.04KB | 10.30KB | ▼ 65.72% |
screenshot-1.png | 126.50KB | 46.58KB | ▼ 63.18% |
js/flexslider/images/bg_direction_nav.png | 1.82KB | 0.79KB | ▼ 56.38% |