Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▲4.23ms] 75% from 4 tests
Analyzing server-side resources used by Photo Gallery by Supsystic
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 816.17ms on /wp-admin/admin.php?page=supsystic-gallery&module=overview)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 97.29 ▲26.49 |
Dashboard /wp-admin | 3.78 ▲0.48 | 102.60 ▼3.15 |
Posts /wp-admin/edit.php | 3.83 ▲0.48 | 101.77 ▲4.69 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.42 | 172.29 ▲14.38 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 71.49 ▲0.98 |
Image Optimize /wp-admin/admin.php?page=supsystic-gallery&module=optimization | 2.30 | 23.74 |
Settings /wp-admin/admin.php?page=supsystic-gallery&module=settings | 4.76 | 132.38 |
Galleries /wp-admin/admin.php?page=supsystic-gallery&module=galleries | 6.48 | 131.04 |
New gallery /wp-admin/admin.php?page=supsystic-gallery&module=galleries&action=showPresets | 4.46 | 86.55 |
Photo Gallery by Supsystic /wp-admin/admin.php?page=supsystic-gallery | 4.33 | 97.40 |
Overview /wp-admin/admin.php?page=supsystic-gallery&module=overview | 4.72 | 816.17 |
Server storage [IO: ▲9.06MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 759 new files
Database: 15 new tables, 11 new options
New tables |
---|
wp_gg_galleries |
wp_gg_settings_sets |
wp_gg_folders |
wp_gg_galleries_excluded |
wp_gg_photos_settings |
wp_gg_photos_pos |
wp_gg_image_optimize |
wp_gg_photos |
wp_gg_tags |
wp_gg_galleries_resources |
... |
New WordPress options |
---|
sgg_plug_welcome_show |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
grid_gallery_last_version |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
sg_plugin_version |
sg_welcome_page_was_showed |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Photo Gallery by Supsystic
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,035 ▲289 | 14.93 ▲0.90 | 9.00 ▲5.56 | 75.60 ▲2.02 |
Dashboard /wp-admin | 2,443 ▲264 | 6.80 ▲1.94 | 253.03 ▲66.96 | 80.68 ▼8.03 |
Posts /wp-admin/edit.php | 2,325 ▲236 | 3.53 ▲1.52 | 99.69 ▼1.19 | 66.12 ▼14.99 |
Add New Post /wp-admin/post-new.php | 1,410 ▲51 | 17.74 ▲0.19 | 923.57 ▼20.82 | 58.81 ▼21.01 |
Media Library /wp-admin/upload.php | 1,488 ▲100 | 4.41 ▲0.20 | 183.72 ▼4.06 | 87.68 ▼11.89 |
Image Optimize /wp-admin/admin.php?page=supsystic-gallery&module=optimization | 1,741 | 12.43 | 701.10 | 156.95 |
Settings /wp-admin/admin.php?page=supsystic-gallery&module=settings | 1,657 | 5.08 | 192.33 | 173.59 |
Galleries /wp-admin/admin.php?page=supsystic-gallery&module=galleries | 1,872 | 5.85 | 240.34 | 93.35 |
New gallery /wp-admin/admin.php?page=supsystic-gallery&module=galleries&action=showPresets | 1,629 | 5.41 | 167.21 | 260.45 |
Photo Gallery by Supsystic /wp-admin/admin.php?page=supsystic-gallery | 1,869 | 5.89 | 223.98 | 97.83 |
Overview /wp-admin/admin.php?page=supsystic-gallery&module=overview | 3,026 | 25.82 | 1,115.86 | 122.05 |
Uninstaller [IO: ▲0.15MB] [DB: ▲0.01MB] 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
- The plugin did not uninstall successfully, leaving 6 tables in the database
- wp_gg_tags
- wp_gg_galleries_resources
- wp_gg_galleries
- wp_gg_photos
- wp_gg_settings_sets
- wp_gg_attributes
- This plugin does not fully uninstall, leaving 11 options in the database
- sgg_plug_welcome_show
- sg_welcome_page_was_showed
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- grid_gallery_last_version
- widget_sggwidget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 218× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Twig_SupTwgSgg_LoaderInterface' not found in wp-content/plugins/gallery-by-supsystic/vendor/Twig/Loader/Filesystem.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_SupTwgSgg_Node_Expression' not found in wp-content/plugins/gallery-by-supsystic/vendor/Twig/Node/Expression/Conditional.php:12
- > PHP Fatal error
Uncaught Error: Class 'RscSgg_Mvc_Module' not found in wp-content/plugins/gallery-by-supsystic/src/GridGallery/Developer/Module.php:10
- > PHP Fatal error
Uncaught Error: Class 'Twig_SupTwgSgg_Node_Expression_Conditional' not found in wp-content/plugins/gallery-by-supsystic/vendor/Twig/Node/Expression/NullCoalesce.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_SupTwgSgg_Node_Include' not found in wp-content/plugins/gallery-by-supsystic/vendor/Twig/Node/Embed.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Twig_SupTwgSgg_LoaderInterface' not found in wp-content/plugins/gallery-by-supsystic/vendor/Twig/Loader/Array.php:26
- > PHP Fatal error
Uncaught Error: Class 'Twig_SupTwgSgg_Node' not found in wp-content/plugins/gallery-by-supsystic/vendor/Twig/Node/Text.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_SupTwgSgg_TokenParser' not found in wp-content/plugins/gallery-by-supsystic/vendor/Twig/TokenParser/Import.php:21
- > PHP Fatal error
Uncaught Error: Class 'GridGallery_Core_BaseModel' not found in wp-content/plugins/gallery-by-supsystic/src/GridGallery/Galleries/Model/SocialSharing.php:9
- > PHP Fatal error
Uncaught Error: Class 'GridGallery_Core_Module' not found in wp-content/plugins/gallery-by-supsystic/src/GridGallery/Galleries/Module.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: A description for screenshot #4 is missing in gallery-by-supsystic/assets to your readme.txt
gallery-by-supsystic/index.php 85% from 13 tests
The main PHP script in "Photo Gallery by Supsystic" version 1.15.14 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gallery-by-supsystic.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin87,719 lines of code in 556 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 19 | 12,068 | 2,663 | 26,414 |
PHP | 336 | 5,411 | 10,560 | 24,577 |
JavaScript | 99 | 2,800 | 2,094 | 16,370 |
CSS | 43 | 1,486 | 513 | 12,554 |
Twig | 57 | 792 | 224 | 7,745 |
JSON | 1 | 0 | 0 | 30 |
SVG | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 10.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 34 | |
Traits | 0 | |
Classes | 295 | |
▷ Abstract classes | 16 | 5.42% |
▷ Concrete classes | 279 | 94.58% |
▷ Final classes | 1 | 0.36% |
Methods | 2,013 | |
▷ Static methods | 109 | 5.41% |
▷ Public methods | 1,749 | 86.89% |
▷ Protected methods | 201 | 9.99% |
▷ Private methods | 63 | 3.13% |
Functions | 52 | |
▷ Named functions | 52 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 81 | |
▷ Global constants | 3 | 3.70% |
▷ Class constants | 78 | 96.30% |
▷ Public constants | 78 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
104 PNG files occupy 1.08MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/GridGallery/Galleries/assets/images/prettyPhoto/default/sprite.png | 6.53KB | 3.21KB | ▼ 50.87% |
src/GridGallery/Galleries/assets/css/images/ui-icons_c98000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
src/GridGallery/Galleries/assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
src/GridGallery/Galleries/assets/images/prettyPhoto/dark_rounded/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
app/assets/css/images/ui-icons_cccccc_256x240.png | 6.81KB | 4.17KB | ▼ 38.71% |