Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.07MB] [CPU: ▼633.85ms] Passed 4 tests
An overview of server-side resources used by Gallery: Hybrid - Advanced Visual Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲1.13 | 48.50 ▲18.80 |
Dashboard /wp-admin | 4.17 ▲1.12 | 66.73 ▲10.14 |
Posts /wp-admin/edit.php | 4.22 ▲1.12 | 65.51 ▲11.64 |
Add New Post /wp-admin/post-new.php | 6.45 ▲1.01 | 105.17 ▼2,563.75 |
Media Library /wp-admin/upload.php | 4.03 ▲1.03 | 47.85 ▲6.58 |
Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 62 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gallery: Hybrid - Advanced Visual Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,081 ▲485 | 18.50 ▲2.91 | 21.17 ▲8.66 | 39.05 ▼13.01 |
Dashboard /wp-admin | 3,254 ▲324 | 8.32 ▲2.32 | 185.81 ▲10.47 | 148.89 ▲24.20 |
Posts /wp-admin/edit.php | 3,064 ▲325 | 4.39 ▲1.67 | 98.98 ▲15.64 | 128.97 ▼10.90 |
Add New Post /wp-admin/post-new.php | 1,754 ▲139 | 15.93 ▼5.34 | 426.73 ▲105.53 | 153.40 ▲41.40 |
Media Library /wp-admin/upload.php | 1,898 ▲91 | 4.99 ▼0.05 | 144.69 ▼23.94 | 148.85 ▲26.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== hybrid-gallery ===
) - Tags: There are too many tags (48 tag instead of maximum 10)
hybrid-gallery/index.php 92% from 13 tests
The main file in "Gallery: Hybrid - Advanced Visual Gallery" v. 1.4.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hybrid-gallery.php" instead of "index.php")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin11,988 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 1,096 | 553 | 7,334 |
SVG | 1 | 0 | 0 | 2,671 |
PO File | 5 | 952 | 2,097 | 1,952 |
CSS | 8 | 5 | 13 | 20 |
JavaScript | 5 | 13 | 52 | 11 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 118)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 57.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 204.00 |
Average method complexity | 11.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 118.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 3 | 6.25% |
▷ Public methods | 47 | 97.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.08% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
17 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/layout.metro.png | 0.57KB | 0.21KB | ▼ 64.04% |
engine/assets/img/colorbox/controls.png | 1.23KB | 1.28KB | 0.00% |
libs/lightboxes/colorbox/images/controls.png | 1.23KB | 1.28KB | 0.00% |
admin/assets/img/layout.justified.png | 0.60KB | 0.23KB | ▼ 61.17% |
libs/lightboxes/colorbox/images/border.png | 0.07KB | 0.10KB | 0.00% |