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.10MB] [CPU: ▼5.56ms] Passed 4 tests
Server-side resources used by Grid View Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.35 ▼5.16 |
Dashboard /wp-admin | 3.41 ▲0.10 | 47.67 ▼6.85 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 51.06 ▲4.85 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 93.82 ▼9.41 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.26 ▼0.80 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=custom-slider | 3.32 | 35.43 |
Settings /wp-admin/edit.php?post_type=custom-slider&page=slider-settings | 3.35 | 32.39 |
Add New Gallery /wp-admin/post-new.php?post_type=custom-slider | 3.37 | 49.09 |
All Gallery /wp-admin/edit.php?post_type=custom-slider | 3.38 | 37.42 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=custom-slider | 3.32 | 39.46 |
Server storage [IO: ▲1.86MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 61 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
CS_Settings |
category_children |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Grid View Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.30 ▼1.00 | 1.71 ▼0.18 | 42.72 ▲2.27 |
Dashboard /wp-admin | 2,229 ▲44 | 5.86 ▲0.95 | 111.44 ▲6.98 | 40.86 ▲0.33 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.26 ▲0.25 | 40.21 ▲2.95 | 36.20 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 22.97 ▼0.24 | 630.00 ▼17.12 | 34.96 ▼21.02 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.31 ▲0.06 | 100.32 ▼3.61 | 46.82 ▲3.37 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=custom-slider | 1,350 | 2.33 | 28.02 | 30.43 |
Settings /wp-admin/edit.php?post_type=custom-slider&page=slider-settings | 1,209 | 4.62 | 45.40 | 52.08 |
Add New Gallery /wp-admin/post-new.php?post_type=custom-slider | 1,713 | 2.81 | 56.80 | 53.13 |
All Gallery /wp-admin/edit.php?post_type=custom-slider | 1,142 | 2.17 | 33.05 | 28.01 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=custom-slider | 1,486 | 2.33 | 28.29 | 33.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- category_children
- widget_recent-comments
- CS_Settings
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/grid-view-gallery/custom-slider-short-code.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/grid-view-gallery/custom-slider.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/grid-view-gallery/custom-slider-settings.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
grid-view-gallery/custom-slider.php 92% from 13 tests
The entry point to "Grid View Gallery" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("grid-view-gallery.php" instead of "custom-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin12,057 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 632 | 235 | 8,731 |
Sass | 13 | 19 | 22 | 928 |
LESS | 12 | 18 | 27 | 907 |
PHP | 3 | 62 | 68 | 551 |
SVG | 1 | 0 | 0 | 414 |
JavaScript | 4 | 21 | 25 | 373 |
PO File | 1 | 666 | 1,355 | 153 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/next.png | 1.32KB | 1.58KB | 0.00% |
images/prev.png | 1.33KB | 1.59KB | 0.00% |
images/closess.png | 3.08KB | 0.64KB | ▼ 79.28% |
images/Close-icon.png | 18.37KB | 8.39KB | ▼ 54.31% |
images/close.png | 4.13KB | 1.49KB | ▼ 63.97% |