Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼145.29ms] Passed 4 tests
A check of server-side resources used by Awesome Wp Image Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 41.89 ▲18.36 |
Dashboard /wp-admin | 3.09 ▲0.03 | 37.50 ▼10.70 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 51.01 ▼0.06 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 97.48 ▼570.19 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 35.82 ▼0.20 |
Add New /wp-admin/post-new.php?post_type=image-gallery | 3.09 | 46.31 |
Photo Gallery /wp-admin/edit.php?post_type=image-gallery | 3.07 | 35.59 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Awesome Wp Image Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,830 ▲234 | 16.34 ▲0.91 | 22.55 ▲10.54 | 50.65 ▲1.09 |
Dashboard /wp-admin | 2,999 ▲65 | 6.06 ▲0.09 | 173.02 ▲18.40 | 116.00 ▲12.39 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.73 ▲0.02 | 72.42 ▲3.80 | 94.40 ▲9.10 |
Add New Post /wp-admin/post-new.php | 1,706 ▲23 | 18.06 ▼0.48 | 401.84 ▼15.20 | 105.59 ▼7.22 |
Media Library /wp-admin/upload.php | 1,842 ▲35 | 5.04 ▲0.02 | 159.51 ▲1.28 | 118.57 ▼1.09 |
Add New /wp-admin/post-new.php?post_type=image-gallery | 2,217 | 4.55 | 139.37 | 88.47 |
Photo Gallery /wp-admin/edit.php?post_type=image-gallery | 1,431 | 2.63 | 68.36 | 68.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 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 50% 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-wp-image-gallery/index.php:19
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== awesome-wp-image-gallery ===
)
awesome-wp-image-gallery/index.php 85% from 13 tests
The principal PHP file in "Awesome Wp Image Gallery" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("awesome-wp-image-gallery.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 189 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin258 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 6 | 0 | 199 |
PHP | 1 | 37 | 7 | 55 |
JavaScript | 2 | 1 | 6 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
27 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prettyPhoto/default/sprite.png | 6.53KB | 3.21KB | ▼ 50.87% |
images/prettyPhoto/dark_rounded/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
images/prettyPhoto/dark_square/sprite.png | 3.42KB | 2.13KB | ▼ 37.67% |
images/prettyPhoto/light_square/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |
images/prettyPhoto/default/sprite_x.png | 1.07KB | 0.11KB | ▼ 89.79% |