Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼139.90ms] Passed 4 tests
A check of server-side resources used by Image Shuffle
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.77 ▲0.05 | 27.72 ▲6.38 |
Dashboard /wp-admin | 3.11 ▲0.05 | 45.66 ▼1.81 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 45.35 ▲2.48 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 95.53 ▼552.94 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 35.51 ▼7.34 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Image Shuffle
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,806 ▲210 | 16.37 ▲0.46 | 13.88 ▲4.16 | 47.91 ▲0.42 |
Dashboard /wp-admin | 2,973 ▲42 | 6.16 ▲0.24 | 146.81 ▲3.09 | 108.35 ▲10.04 |
Posts /wp-admin/edit.php | 2,745 ▲6 | 2.72 ▲0.00 | 61.28 ▼3.65 | 86.55 ▲4.57 |
Add New Post /wp-admin/post-new.php | 1,689 ▲17 | 18.42 ▼0.54 | 401.79 ▲12.49 | 111.39 ▼2.94 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.02 ▼0.02 | 153.00 ▼3.64 | 114.42 ▼1.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/image-shuffle/public/partials/essco-image-shuffle-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/image-shuffle/admin/partials/essco-image-shuffle-admin-display.php:1
- > PHP Notice
Undefined variable: images in wp-content/plugins/image-shuffle/public/partials/shuffle-images.php on line 1
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Easy pop up to add ShortCode to WP-Editor.), #2 (Button to Add the Shuffle ShortCode to WP-Editor.)
image-shuffle/essco-image-shuffle.php 85% from 13 tests
Analyzing the main PHP file in "Image Shuffle" version 1.0.0
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("image-shuffle.php" instead of "essco-image-shuffle.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,565 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 202 | 50 | 1,101 |
PHP | 13 | 97 | 277 | 279 |
JavaScript | 5 | 51 | 45 | 185 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/shuffle-icon.png | 3.91KB | 2.97KB | ▼ 24.06% |