Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.46ms] Passed 4 tests
An overview of server-side resources used by Image Gallery Google Style
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.25 ▲0.38 |
Dashboard /wp-admin | 3.32 ▼0.03 | 46.67 ▼13.80 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.73 ▼2.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 96.55 ▼6.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.71 ▲1.33 |
Image Gallery Google Style /wp-admin/options-general.php?page=image-gallery-google-style | 3.23 | 29.97 |
Server storage [IO: ▲1.75MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Image Gallery Google Style: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲148 | 13.78 ▼0.83 | 9.30 ▲7.58 | 41.05 ▲2.76 |
Dashboard /wp-admin | 2,215 ▲27 | 5.90 ▲0.03 | 109.02 ▲11.59 | 41.57 ▼5.83 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.01 ▲0.00 | 38.56 ▼2.66 | 33.96 ▼7.99 |
Add New Post /wp-admin/post-new.php | 1,542 ▲6 | 23.43 ▲2.36 | 651.61 ▲2.44 | 61.99 ▲0.07 |
Media Library /wp-admin/upload.php | 1,405 ▲23 | 4.18 ▲0.01 | 98.28 ▼13.49 | 43.76 ▼1.17 |
Image Gallery Google Style /wp-admin/options-general.php?page=image-gallery-google-style | 828 | 2.02 | 26.04 | 28.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/image-gallery-google-style/admin/partials/admin-display.php
- > /wp-content/plugins/image-gallery-google-style/public/partials/image-gallery-google-style-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/image-gallery-google-style/admin/partials/gallery-options.php:32
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
image-gallery-google-style/image-gallery-google-style.php 92% from 13 tests
The main PHP script in "Image Gallery Google Style" version 0.42 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 228 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin12,657 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 11,900 |
PHP | 13 | 142 | 576 | 287 |
JavaScript | 3 | 35 | 177 | 281 |
CSS | 3 | 11 | 34 | 168 |
SVG | 1 | 9 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 4.63KB | 0.90KB | ▼ 80.63% |
assets/banner-1544x500.png | 15.62KB | 1.59KB | ▼ 89.84% |
assets/icon-256x256.png | 6.94KB | 2.89KB | ▼ 58.33% |
assets/icon-128x128.png | 2.95KB | 1.47KB | ▼ 50.18% |