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
Installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▲1.49ms] Passed 4 tests
Server-side resources used by Image & Video Gallery with categories
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 44.05 ▲3.34 |
Dashboard /wp-admin | 3.81 ▲0.50 | 48.12 ▼2.10 |
Posts /wp-admin/edit.php | 3.82 ▲0.47 | 57.89 ▲13.41 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 89.21 ▼1.18 |
Media Library /wp-admin/upload.php | 3.60 ▲0.38 | 40.35 ▲5.88 |
Category /wp-admin/admin.php?page=category_class | 3.63 | 41.48 |
Edit Image /wp-admin/admin.php?page=edit_image_class | 3.53 | 36.94 |
Add Image /wp-admin/admin.php?page=add_image_class | 3.53 | 34.78 |
Add Category /wp-admin/admin.php?page=add_category_class | 3.61 | 35.75 |
New Gallery /wp-admin/admin.php?page=add_new_class | 3.61 | 39.59 |
Delete Image /wp-admin/admin.php?page=delete_image_class | 3.53 | 36.37 |
Gallery List /wp-admin/admin.php?page=gallery_table_class | 3.63 | 38.37 |
Help /wp-admin/admin.php?page=help_class | 3.61 | 37.47 |
Add Video /wp-admin/admin.php?page=add_video_class | 3.53 | 35.94 |
Server storage [IO: ▲18.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 1,553 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_neo_ivg_category |
wp_neo_ivg_gallery |
wp_neo_ivg_gallery_images |
wp_neo_ivg_image_category |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Image & Video Gallery with categories
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,091 ▲356 | 15.34 ▲0.98 | 12.81 ▲10.78 | 45.23 ▼2.53 |
Dashboard /wp-admin | 2,362 ▲174 | 6.54 ▲1.64 | 118.11 ▲2.61 | 100.07 ▲48.65 |
Posts /wp-admin/edit.php | 2,286 ▲197 | 3.42 ▲1.38 | 52.42 ▲16.06 | 77.11 ▲42.10 |
Add New Post /wp-admin/post-new.php | 1,575 ▲40 | 24.01 ▲0.86 | 574.30 ▼140.89 | 30.86 ▼26.16 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.21 ▲0.01 | 80.01 ▼24.18 | 74.66 ▲31.22 |
Category /wp-admin/admin.php?page=category_class | 1,197 | 3.10 | 42.33 | 67.59 |
Edit Image /wp-admin/admin.php?page=edit_image_class | 1,026 | 3.05 | 39.37 | 44.60 |
Add Image /wp-admin/admin.php?page=add_image_class | 1,136 | 3.13 | 40.35 | 48.98 |
Add Category /wp-admin/admin.php?page=add_category_class | 1,081 | 3.16 | 38.81 | 60.25 |
New Gallery /wp-admin/admin.php?page=add_new_class | 1,081 | 3.08 | 42.09 | 49.16 |
Delete Image /wp-admin/admin.php?page=delete_image_class | 1,136 | 3.10 | 39.12 | 57.09 |
Gallery List /wp-admin/admin.php?page=gallery_table_class | 1,224 | 3.06 | 39.26 | 66.58 |
Help /wp-admin/admin.php?page=help_class | 1,087 | 3.09 | 40.61 | 64.56 |
Add Video /wp-admin/admin.php?page=add_video_class | 1,156 | 3.17 | 40.58 | 67.80 |
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
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add_video_class
- > Notice in wp-content/plugins/image-video-gallery-with-categories/class-neo-image-video-gallery.php+291
Undefined index: id
- > GET request to /wp-admin/admin.php?page=edit_image_class
- > Notice in wp-content/plugins/image-video-gallery-with-categories/class-neo-image-video-gallery.php+351
Undefined index: gallery_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=delete_image_class
- > Notice in wp-content/plugins/image-video-gallery-with-categories/class-neo-image-video-gallery.php+343
Array to string conversion
SRP 50% 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 fix the following items
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-video-gallery-with-categories/template/function.php:106
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/image-video-gallery-with-categories/class-neo-image-video-gallery-plugin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-video-gallery-with-categories/image-video-gallery-with-categories.php:28
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/image-video-gallery-with-categories/class-neo-image-video-gallery-category.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-video-gallery-with-categories/class-neo-image-video-gallery-plugin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-video-gallery-with-categories/template/neo-image-video-gallery-shortcode.php:13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/image-video-gallery-with-categories/class-neo-image-video-gallery.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-video-gallery-with-categories/class-neo-image-video-gallery-category.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-video-gallery-with-categories/class-neo-image-video-gallery.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/image-video-gallery-with-categories/class-neo-image-video-gallery.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: video gallery with categories, video gallery, image and video gallery with categories, gallery with categories, image gallery...
image-video-gallery-with-categories/image-video-gallery-with-categories.php 92% from 13 tests
This is the main PHP file of "Image & Video Gallery with categories" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 205 characters long)
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 detected107,780 lines of code in 1,523 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 45,201 |
YAML | 4 | 0 | 0 | 17,714 |
JavaScript | 26 | 3,404 | 1,439 | 14,363 |
SVG | 1,415 | 0 | 5,616 | 11,335 |
CSS | 23 | 3,567 | 101 | 8,920 |
Sass | 18 | 505 | 34 | 4,372 |
LESS | 18 | 502 | 55 | 4,331 |
PHP | 7 | 152 | 225 | 1,383 |
Markdown | 4 | 41 | 0 | 89 |
XML | 4 | 0 | 0 | 72 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 39.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 6 | 11.11% |
▷ Public methods | 53 | 98.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.85% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 4.88MB with 2.77MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 278.50KB | 73.92KB | ▼ 73.46% |
screenshot-1.png | 1,666.99KB | 426.98KB | ▼ 74.39% |
screenshot-2.png | 973.94KB | 257.52KB | ▼ 73.56% |
img/galleryIcon.png | 1.21KB | 1.58KB | 0.00% |
screenshot-4.png | 721.09KB | 266.52KB | ▼ 63.04% |