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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼138.80ms] Passed 4 tests
This is a short check of server-side resources used by Zengo Custom Thumbnail Image Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 40.37 ▲11.53 |
Dashboard /wp-admin | 3.13 ▲0.08 | 44.50 ▲6.86 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 43.03 ▲1.11 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 85.68 ▼562.97 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 34.11 ▼0.18 |
Zengo Custom Thumbnail Image /wp-admin/options-general.php?page=zengo-gallery | 3.02 | 27.75 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Zengo Custom Thumbnail Image Gallery: 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,708 ▲112 | 15.90 ▲0.32 | 12.12 ▲1.76 | 46.73 ▼4.65 |
Dashboard /wp-admin | 2,978 ▲44 | 6.06 ▲0.08 | 123.86 ▼17.15 | 109.93 ▼5.95 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 65.40 ▲1.49 | 95.09 ▲1.61 |
Add New Post /wp-admin/post-new.php | 1,679 ▲88 | 18.78 ▲0.05 | 358.98 ▼17.74 | 110.33 ▲7.32 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.03 | 153.92 ▲1.09 | 126.42 ▼29.86 |
Zengo Custom Thumbnail Image /wp-admin/options-general.php?page=zengo-gallery | 2,034 | 3.66 | 77.23 | 163.97 |
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 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=zengo-gallery
- > Notice in wp-content/plugins/zengo-custom-thumbnail-image/image.php+225
Undefined variable: success
- > GET request to /wp-admin/options-general.php?page=zengo-gallery
- > Notice in wp-content/plugins/zengo-custom-thumbnail-image/image.php+229
Undefined variable: empty
- > GET request to /wp-admin/options-general.php?page=zengo-gallery
- > Notice in wp-content/plugins/zengo-custom-thumbnail-image/image.php+233
Undefined variable: deleted
- > GET request to /wp-admin/options-general.php?page=zengo-gallery
- > Notice in wp-content/plugins/zengo-custom-thumbnail-image/image.php+238
Undefined variable: save
- > GET request to /wp-admin/options-general.php?page=zengo-gallery
- > Notice in wp-content/plugins/zengo-custom-thumbnail-image/image.php+243
Undefined variable: edit
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/zengo-custom-thumbnail-image/shortcode.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/zengo-custom-thumbnail-image/display.php:280
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zengo-custom-thumbnail-image/image.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: custom gallery, display image, separate thumbnail, thumbnail gallery, custom thumbnail...
zengo-custom-thumbnail-image/image.php 92% from 13 tests
The main file in "Zengo Custom Thumbnail Image Gallery" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("zengo-custom-thumbnail-image.php" instead of "image.php")
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,835 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 71 | 59 | 954 |
CSS | 5 | 27 | 42 | 658 |
SVG | 1 | 0 | 0 | 188 |
JavaScript | 2 | 1 | 6 | 26 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 11.33 |
▷ Minimum method complexity | 4.00 |
▷ Maximum method complexity | 19.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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 |
images/arrows.png | 1.98KB | 1.01KB | ▼ 49.21% |