Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.88ms] Passed 4 tests
Server-side resources used by InPost Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 41.84 ▲2.30 |
Dashboard /wp-admin | 3.47 ▲0.17 | 46.28 ▼3.47 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 49.23 ▲4.25 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 84.89 ▼12.88 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.49 ▲2.52 |
InPost Gallery /wp-admin/options-general.php?page=inpost-gallery-settings | 3.37 | 31.00 |
Server storage [IO: ▲2.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 209 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
InPost Gallery: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲219 | 13.79 ▼0.59 | 5.41 ▲3.56 | 43.80 ▼3.09 |
Dashboard /wp-admin | 2,261 ▲73 | 5.20 ▼0.70 | 111.86 ▲10.61 | 39.04 ▼0.31 |
Posts /wp-admin/edit.php | 2,169 ▲80 | 2.29 ▲0.28 | 44.54 ▲5.12 | 36.02 ▲2.86 |
Add New Post /wp-admin/post-new.php | 6,278 ▲4,745 | 19.43 ▼3.78 | 947.35 ▲333.56 | 48.25 ▼10.86 |
Media Library /wp-admin/upload.php | 1,453 ▲68 | 4.64 ▲0.38 | 110.15 ▲14.47 | 42.92 ▲1.06 |
InPost Gallery /wp-admin/options-general.php?page=inpost-gallery-settings | 1,023 | 2.30 | 30.17 | 28.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=inpost-gallery-settings
- > Notice in wp-content/plugins/inpost-gallery/views/admin/settings.php+20
Undefined index: custom_css
- > GET request to /wp-admin/options-general.php?page=inpost-gallery-settings
- > Notice in wp-content/plugins/inpost-gallery/views/admin/settings.php+20
Undefined index: customize_changeset
- > GET request to /wp-admin/options-general.php?page=inpost-gallery-settings
- > Notice in wp-content/plugins/inpost-gallery/views/admin/settings.php+20
Undefined index: oembed_cache
- > GET request to /wp-admin/options-general.php?page=inpost-gallery-settings
- > Notice in wp-content/plugins/inpost-gallery/views/admin/settings.php+20
Undefined index: user_request
- > GET request to /wp-admin/options-general.php?page=inpost-gallery-settings
- > Notice in wp-content/plugins/inpost-gallery/views/admin/settings.php+20
Undefined index: wp_block
- > GET request to /wp-admin/options-general.php?page=inpost-gallery-settings
- > Notice in wp-content/plugins/inpost-gallery/views/admin/settings.php+20
Undefined index: wp_template
- > GET request to /wp-admin/options-general.php?page=inpost-gallery-settings
- > Notice in wp-content/plugins/inpost-gallery/views/admin/settings.php+20
Undefined index: wp_template_part
- > GET request to /wp-admin/options-general.php?page=inpost-gallery-settings
- > Notice in wp-content/plugins/inpost-gallery/views/admin/settings.php+20
Undefined index: wp_global_styles
- > GET request to /wp-admin/options-general.php?page=inpost-gallery-settings
- > Notice in wp-content/plugins/inpost-gallery/views/admin/settings.php+20
Undefined index: wp_navigation
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 items
- 17× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/inpost-gallery/views/admin/meta_slide_item.php
- > /wp-content/plugins/inpost-gallery/views/shortcodes/popups/inpost_pixedelic_camera.php
- > /wp-content/plugins/inpost-gallery/index.php
- > /wp-content/plugins/inpost-gallery/views/shortcodes/popups/inpost_nivo.php
- > /wp-content/plugins/inpost-gallery/views/shortcodes/popups/inpost_gallery.php
- > /wp-content/plugins/inpost-gallery/views/shortcodes/popups/inpost_galleria.php
- > /wp-content/plugins/inpost-gallery/views/shortcodes/inpost_fancy.php
- > /wp-content/plugins/inpost-gallery/views/admin/settings.php
- > /wp-content/plugins/inpost-gallery/views/shortcodes/popups/inpost_fancy.php
- > /wp-content/plugins/inpost-gallery/views/shortcodes/inpost_pixedelic_camera.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
inpost-gallery/index.php 92% from 13 tests
The main PHP file in "InPost Gallery" ver. 2.1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("inpost-gallery.php" instead of "index.php")
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 plugin22,290 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 66 | 2,666 | 1,546 | 13,868 |
CSS | 16 | 338 | 262 | 3,895 |
PHP | 18 | 778 | 165 | 3,395 |
SVG | 1 | 1 | 1 | 910 |
HTML | 2 | 15 | 3 | 222 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 67.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 38 | |
▷ Static methods | 33 | 86.84% |
▷ Public methods | 36 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.26% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
81 PNG files occupy 0.31MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/update.png | 1.54KB | 1.38KB | ▼ 10.34% |
images/edit.png | 0.92KB | 1.14KB | 0.00% |
js/sliders/nivo/themes/dark/bullets.png | 3.07KB | 0.42KB | ▼ 86.27% |
js/sliders/fancybox/fancy_shadow_nw.png | 0.32KB | 0.47KB | 0.00% |
js/sliders/galleria/themes/fullscreen/west-mini.png | 0.61KB | 0.34KB | ▼ 43.79% |