Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼311.02ms] Passed 4 tests
This is a short check of server-side resources used by Fly Dynamic Image Resizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 58.50 ▲6.52 |
Dashboard /wp-admin | 3.43 ▲0.02 | 33.56 ▼0.18 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.16 ▼4.01 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 96.72 ▼1,234.20 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.15 ▼5.68 |
Fly Images /wp-admin/tools.php?page=fly-images | 3.30 | 20.94 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Fly Dynamic Image Resizer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲36 | 16.00 ▲0.31 | 6.00 ▲0.15 | 2.08 ▼0.26 |
Dashboard /wp-admin | 2,897 ▲39 | 6.00 ▼0.17 | 111.77 ▼18.74 | 155.26 ▼3.89 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.25 ▲0.00 | 61.59 ▲1.68 | 131.81 ▼3.74 |
Add New Post /wp-admin/post-new.php | 1,664 ▼115 | 16.17 ▼6.00 | 413.76 ▼16.50 | 151.80 ▼5.49 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.47 ▼0.01 | 149.57 ▲5.80 | 198.56 ▲3.16 |
Fly Images /wp-admin/tools.php?page=fly-images | 1,028 | 2.37 | 51.53 | 124.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/fly-dynamic-image-resizer/fly-dynamic-image-resizer.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/fly-dynamic-image-resizer/inc/class-fly-cli.php:7
- > PHP Fatal error
Uncaught Error: Class 'JB\\FlyImages\\Core' not found in wp-content/plugins/fly-dynamic-image-resizer/admin/options.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The Tools page), #2 (Delete individual images' cached fly images)
fly-dynamic-image-resizer/fly-dynamic-image-resizer.php 92% from 13 tests
The principal PHP file in "Fly Dynamic Image Resizer" v. 2.0.8 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin351 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 73 | 207 | 351 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.05MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 19.83KB | 20.10KB | 0.00% |
screenshot-1.png | 27.01KB | 27.54KB | 0.00% |