Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.16MB] [CPU: ▼163.97ms] Passed 4 tests
A check of server-side resources used by Gifload
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.67 ▼0.05 | 18.76 ▼2.30 |
Dashboard /wp-admin | 2.98 ▼0.08 | 26.72 ▼16.86 |
Posts /wp-admin/edit.php | 3.04 ▼0.07 | 28.85 ▼12.21 |
Add New Post /wp-admin/post-new.php | 4.99 ▼0.45 | 71.06 ▼619.01 |
Media Library /wp-admin/upload.php | 2.95 ▼0.05 | 24.71 ▼7.80 |
GifLoad /wp-admin/options-general.php?page=gifload | 2.96 | 21.93 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Gifload: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,913 ▲317 | 17.65 ▲2.01 | 10.42 ▼1.24 | 43.11 ▼5.35 |
Dashboard /wp-admin | 3,172 ▲238 | 7.93 ▲1.78 | 152.47 ▲10.62 | 110.81 ▼4.75 |
Posts /wp-admin/edit.php | 2,973 ▲234 | 4.15 ▲1.44 | 80.54 ▲13.13 | 99.04 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,684 ▲12 | 18.90 ▼0.15 | 362.47 ▼30.90 | 127.27 ▲24.78 |
Media Library /wp-admin/upload.php | 1,819 ▲9 | 4.65 ▼0.36 | 121.52 ▼23.84 | 121.95 ▲0.99 |
GifLoad /wp-admin/options-general.php?page=gifload | 1,329 | 3.31 | 69.73 | 79.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gifload
- > Notice in wp-content/plugins/gifload/admin/class-gifload-admin.php+213
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/gifload/admin/partials/gifload-admin-display.php
- > /wp-content/plugins/gifload/public/partials/gifload-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: image, gifs, lazyload, video, thumbnail...
gifload/gifload.php Passed 13 tests
The principal PHP file in "Gifload" v. 1.0.0 is loaded by WordPress automatically on each request
98 characters long description:
This plugin generates thumbnails from gif files, reducing page load time and offering a better UX.
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
Good job! No executable or dangerous file extensions detected560 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 174 | 575 | 343 |
JavaScript | 2 | 56 | 16 | 217 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 2.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 36 | 87.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.20% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin