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.08MB] [CPU: ▼2.68ms] Passed 4 tests
This is a short check of server-side resources used by Affiliates Image Slider Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.67 ▼1.43 |
Dashboard /wp-admin | 3.39 ▲0.08 | 45.15 ▼0.11 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.22 ▲0.95 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.39 ▼10.12 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.59 ▲3.44 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_affiliates-image-slider-widget-id |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Affiliates Image Slider Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,005 ▲270 | 13.78 ▼0.60 | 11.19 ▲9.50 | 50.38 ▲6.49 |
Dashboard /wp-admin | 2,205 ▲17 | 4.83 ▼1.06 | 97.74 ▼1.91 | 38.89 ▼9.44 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.03 ▲0.04 | 39.86 ▲4.63 | 35.57 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.27 ▲0.03 | 664.91 ▼14.87 | 53.08 ▼0.43 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.21 ▼0.01 | 104.82 ▲3.26 | 46.02 ▲0.40 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_affiliates-image-slider-widget-id
- db_upgraded
- widget_recent-posts
Smoke tests 75% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/affiliates-image-slider-widget/affiliates-image-slider-widget.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
affiliates-image-slider-widget/affiliates-image-slider-widget.php 85% from 13 tests
The main file in "Affiliates Image Slider Widget" v. V1.9.2.0.001... serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "V1.9.2.0.001...")
- Description: Keep the plugin description shorter than 140 characters (currently 228 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected636 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 64 | 394 |
CSS | 3 | 38 | 22 | 238 |
JavaScript | 2 | 0 | 25 | 4 |
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.27 |
Average class complexity | 56.00 |
▷ Minimum class complexity | 56.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 14.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/next.png | 1.32KB | 1.58KB | 0.00% |
assets/img/close.png | 0.27KB | 0.29KB | 0.00% |
assets/img/prev.png | 1.33KB | 1.59KB | 0.00% |