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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.57ms] Passed 4 tests
This is a short check of server-side resources used by Gallery Made Easy
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 42.17 ▲0.09 |
Dashboard /wp-admin | 3.35 ▲0.04 | 54.33 ▲4.27 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 50.23 ▼1.74 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 97.93 ▼4.89 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.16 ▲8.11 |
Galleries /wp-admin/edit.php?post_type=w3b_gallery | 3.31 | 38.81 |
Add New /wp-admin/post-new.php?post_type=w3b_gallery | 3.37 | 57.50 |
Settings /wp-admin/edit.php?post_type=w3b_gallery&page=w3b-gallery | 3.28 | 32.02 |
Server storage [IO: ▲0.60MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Gallery Made Easy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲207 | 13.92 ▼0.45 | 10.83 ▲8.97 | 42.22 ▲1.50 |
Dashboard /wp-admin | 2,233 ▲53 | 5.84 ▲0.16 | 95.07 ▲7.56 | 81.74 ▲42.31 |
Posts /wp-admin/edit.php | 2,157 ▲57 | 2.38 ▲0.35 | 35.46 ▼0.30 | 30.87 ▼3.37 |
Add New Post /wp-admin/post-new.php | 1,588 ▲62 | 23.33 ▼0.16 | 699.88 ▲30.58 | 37.04 ▼19.77 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.37 ▲0.12 | 114.11 ▲9.22 | 89.08 ▲42.83 |
Galleries /wp-admin/edit.php?post_type=w3b_gallery | 1,129 | 2.20 | 33.11 | 32.76 |
Add New /wp-admin/post-new.php?post_type=w3b_gallery | 1,786 | 3.74 | 72.86 | 97.09 |
Settings /wp-admin/edit.php?post_type=w3b_gallery&page=w3b-gallery | 906 | 1.81 | 26.46 | 33.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gallery-made-easy/template/template.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gallery-made-easy/views/settings.php:2
- > PHP Notice
Undefined variable: w3b_gallery in wp-content/plugins/gallery-made-easy/template/template.php on line 5
- > PHP Warning
include(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/gallery-made-easy/gallery-made-easy.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/gallery-made-easy/views/metabox.php:21
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gallery-made-easy/gallery-made-easy.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gallery-made-easy/gallery-made-easy.php:55
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gallery-made-easy/views/metabox_side.php:7
- > PHP Warning
include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gallery-made-easy/gallery-made-easy.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== gallery-made-easy ===
)
gallery-made-easy/gallery-made-easy.php Passed 13 tests
This is the main PHP file of "Gallery Made Easy" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
127 characters long description:
Instantly create responsive image galleries within a simple and customizable interface. Just upload, add, organise and publish.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected6,561 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 26 | 1,282 | 551 | 4,325 |
CSS | 11 | 46 | 26 | 1,787 |
PHP | 5 | 87 | 25 | 408 |
SVG | 1 | 0 | 0 | 41 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.14% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
16 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
js/light-gallery/img/youtube-play.png | 5.06KB | 2.37KB | ▼ 53.04% |
js/light-gallery/img/vimeo-play.png | 5.30KB | 1.56KB | ▼ 70.65% |
css/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |