Benchmarks
Plugin footprint Passed 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.01MB] [CPU: ▼141.07ms] Passed 4 tests
This is a short check of server-side resources used by Unslider Image
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.06 ▲12.61 |
Dashboard /wp-admin | 3.07 ▲0.02 | 49.29 ▲8.58 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 41.05 ▼3.59 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 89.25 ▼568.74 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 31.28 ▼0.53 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Unslider Image
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,826 ▲230 | 16.25 ▲0.71 | 11.22 ▲2.64 | 46.81 ▼2.24 |
Dashboard /wp-admin | 2,973 ▲36 | 6.00 ▲0.05 | 144.26 ▲3.44 | 112.51 ▼0.66 |
Posts /wp-admin/edit.php | 2,742 ▲6 | 2.70 ▼0.00 | 59.98 ▼3.62 | 90.91 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,687 ▲189 | 18.82 ▲0.01 | 357.79 ▼6.58 | 106.59 ▼2.21 |
Media Library /wp-admin/upload.php | 1,813 ▲3 | 5.03 ▲0.00 | 149.02 ▲3.44 | 120.41 ▲0.29 |
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
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unslider-image/main-function.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Installed in demo server.) image not found
unslider-image/main-function.php 92% from 13 tests
"Unslider Image" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("unslider-image.php" instead of "main-function.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected282 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 44 | 38 | 129 |
CSS | 1 | 8 | 1 | 88 |
PHP | 1 | 29 | 24 | 65 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.64MB with 0.22MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 1.47KB | 1.60KB | 0.00% |
img/field.png | 657.96KB | 214.64KB | ▼ 67.38% |