Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.41MB] [CPU: ▼290.41ms] Passed 4 tests
This is a short check of server-side resources used by WP Image Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.32 | 56.17 ▲6.43 |
Dashboard /wp-admin | 3.87 ▲0.47 | 36.67 ▲2.32 |
Posts /wp-admin/edit.php | 4.10 ▲0.46 | 40.60 ▲4.92 |
Add New Post /wp-admin/post-new.php | 7.35 ▲0.38 | 96.96 ▼1,159.33 |
Media Library /wp-admin/upload.php | 3.76 ▲0.46 | 27.93 ▼9.53 |
Works & Use /wp-admin/edit.php?post_type=photo_gallery&page=pgr-designs | 3.76 | 31.82 |
Add Photo Gallery /wp-admin/post-new.php?post_type=photo_gallery | 4.10 | 47.61 |
Category /wp-admin/edit-tags.php?taxonomy=photo_cat&post_type=photo_gallery | 3.76 | 25.83 |
Photo Gallery /wp-admin/edit.php?post_type=photo_gallery | 3.90 | 30.69 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP Image Gallery: 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,928 ▲170 | 16.24 ▲0.54 | 8.87 ▲2.11 | 2.13 ▼0.23 |
Dashboard /wp-admin | 2,939 ▲78 | 6.20 ▲0.03 | 119.01 ▼14.93 | 154.37 ▼8.39 |
Posts /wp-admin/edit.php | 2,735 ▲47 | 3.24 ▲0.01 | 61.86 ▼0.34 | 138.30 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,727 ▲66 | 22.32 ▲5.98 | 404.17 ▲1.78 | 157.46 ▲9.02 |
Media Library /wp-admin/upload.php | 1,743 ▲48 | 5.54 ▲0.04 | 143.00 ▲0.38 | 190.46 ▲3.67 |
Works & Use /wp-admin/edit.php?post_type=photo_gallery&page=pgr-designs | 1,607 | 4.24 | 72.37 | 135.73 |
Add Photo Gallery /wp-admin/post-new.php?post_type=photo_gallery | 3,102 | 10.11 | 192.75 | 215.95 |
Category /wp-admin/edit-tags.php?taxonomy=photo_cat&post_type=photo_gallery | 1,681 | 2.77 | 55.68 | 111.53 |
Photo Gallery /wp-admin/edit.php?post_type=photo_gallery | 1,715 | 5.15 | 74.64 | 130.14 |
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
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (49 tag instead of maximum 10)
photo-gallery-with-responsive/photo-gallery-with-responsive.php 92% from 13 tests
The entry point to "WP Image Gallery" version 1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,579 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 13 | 537 | 2,575 |
JavaScript | 5 | 0 | 342 | 1,168 |
SVG | 1 | 0 | 0 | 685 |
CSS | 5 | 0 | 17 | 151 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/close.png | 0.84KB | 0.85KB | 0.00% |