Benchmarks
Plugin footprint 65% 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.91MB] [CPU: ▼34.69ms] Passed 4 tests
Server-side resources used by H Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.73 ▼3.55 |
Dashboard /wp-admin | 3.03 ▼0.27 | 25.79 ▼23.15 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 22.78 ▼25.40 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 27.87 ▼76.20 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 21.56 ▼14.02 |
H Gallery /wp-admin/options-general.php?page=H-Gallery_Settings | 3.03 | 24.07 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by H Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 14.02 ▼0.33 | 12.34 ▲10.68 | 44.03 ▲1.33 |
Dashboard /wp-admin | 2,201 ▲13 | 5.03 ▼0.06 | 99.15 ▼8.56 | 38.54 ▼3.57 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.11 ▲0.12 | 39.33 ▲2.55 | 34.44 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.27 ▼0.06 | 639.30 ▼52.11 | 55.72 ▼0.25 |
Media Library /wp-admin/upload.php | 1,383 ▲1 | 4.19 ▼0.07 | 98.86 ▲0.09 | 41.26 ▼4.34 |
H Gallery /wp-admin/options-general.php?page=H-Gallery_Settings | 811 | 2.02 | 22.97 | 27.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/h-gallery/h-gallery.php+266
Use of undefined constant manage_options - assumed 'manage_options' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=H-Gallery_Settings
- > Warning in wp-content/plugins/h-gallery/h-gallery.php+266
Use of undefined constant manage_options - assumed 'manage_options' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/h-gallery/admin/h-gallery-admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/h-gallery/h-gallery.php:235
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 75% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Contributors: The plugin contributors field is missing
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== h-gallery ===
) - Screenshots: Add an image for screenshot #1 (Plugin overview)
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
h-gallery/h-gallery.php 92% from 13 tests
The entry point to "H Gallery" version 0.6.8.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 163 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
No dangerous file extensions were detected527 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 53 | 6 | 241 |
PHP | 2 | 65 | 19 | 220 |
JavaScript | 4 | 7 | 9 | 66 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 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 |
css/images/arrows_02.png | 1.20KB | 0.53KB | ▼ 55.76% |
css/images/fullscreen_icon_01.png | 0.61KB | 0.31KB | ▼ 48.64% |
css/images/arrows_04.png | 2.56KB | 1.90KB | ▼ 25.82% |
css/images/fullscreen_icon_02.png | 0.40KB | 0.23KB | ▼ 42.86% |
css/images/fullscreen_icon_03.png | 0.70KB | 0.37KB | ▼ 47.77% |