Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲3.95MB] [CPU: ▲8.92ms] Passed 4 tests
Analyzing server-side resources used by WordPress Photo Gallery - Portfolio, Image Gallery & Video Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.80 ▲3.34 | 61.02 ▲17.34 |
Dashboard /wp-admin | 7.62 ▲4.27 | 73.11 ▲6.98 |
Posts /wp-admin/edit.php | 8.31 ▲4.96 | 76.20 ▲25.17 |
Add New Post /wp-admin/post-new.php | 9.13 ▲3.24 | 76.69 ▼13.81 |
Media Library /wp-admin/upload.php | 8.22 ▲4.99 | 69.61 ▲33.37 |
Templates (Pro) /wp-admin/admin.php?page=adamlabsgallery-item-skin | 8.18 | 62.56 |
Portfolio Gallery /wp-admin/admin.php?page=adamlabsgallery | 7.63 | 67.00 |
Global Settings (Pro) /wp-admin/admin.php?page=adamlabsgallery-global-settings | 7.70 | 66.14 |
Import/Export /wp-admin/admin.php?page=adamlabsgallery-import-export | 8.23 | 72.18 |
Server storage [IO: ▲6.16MB] [DB: ▲0.11MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 209 new files
Database: 4 new tables, 13 new options
New tables |
---|
wp_adamlabsgallery_navigation_skins |
wp_adamlabsgallery_item_elements |
wp_adamlabsgallery_grids |
wp_adamlabsgallery_item_skins |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
adamlabsgallery_grids_version |
adamlabsgallery_role |
adamlabsgallery_custom_css_imported |
adamlabs-google-fonts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_adamlabsgallery-widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Photo Gallery - Portfolio, Image Gallery & Video Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲161 | 13.44 ▼0.93 | 8.59 ▲6.65 | 37.22 ▼6.79 |
Dashboard /wp-admin | 2,237 ▲60 | 5.52 ▼0.01 | 94.52 ▼10.18 | 90.25 ▲47.75 |
Posts /wp-admin/edit.php | 3,271 ▲1,171 | 2.00 ▲0.04 | 35.53 ▼1.08 | 34.43 ▼0.29 |
Add New Post /wp-admin/post-new.php | 7,413 ▲5,887 | 21.74 ▼1.02 | 893.06 ▲263.38 | 75.80 ▲13.89 |
Media Library /wp-admin/upload.php | 2,580 ▲1,177 | 4.26 ▲0.07 | 100.92 ▼4.49 | 75.52 ▲32.50 |
Templates (Pro) /wp-admin/admin.php?page=adamlabsgallery-item-skin | 1,671 | 5.75 | 124.40 | 111.98 |
Portfolio Gallery /wp-admin/admin.php?page=adamlabsgallery | 1,179 | 4.74 | 61.39 | 38.42 |
Global Settings (Pro) /wp-admin/admin.php?page=adamlabsgallery-global-settings | 1,802 | 4.63 | 61.58 | 81.28 |
Import/Export /wp-admin/admin.php?page=adamlabsgallery-import-export | 1,338 | 4.84 | 63.43 | 42.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.11MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 4 tables
- wp_adamlabsgallery_grids
- wp_adamlabsgallery_item_elements
- wp_adamlabsgallery_item_skins
- wp_adamlabsgallery_navigation_skins
- This plugin did not uninstall successfully, leaving 13 options in the database
- adamlabsgallery_grids_version
- adamlabsgallery-current-sorting
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- adamlabs-google-fonts
- db_upgraded
- adamlabsgallery_custom_css
- widget_recent-posts
- adamlabsgallery_custom_css_imported
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 26 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adamlabsgallery-item-skin
- > Notice in wp-content/plugins/photo-gallery-portfolio/com/core/class-item-skin.php+4218
Undefined index: ID
- > GET request to /wp-admin/admin.php?page=adamlabsgallery-item-skin
- > Notice in wp-content/plugins/photo-gallery-portfolio/com/class-adamlabsgallery.php+1302
Undefined index: settings
- > GET request to /wp-admin/admin.php?page=adamlabsgallery-item-skin
- > Notice in wp-content/plugins/photo-gallery-portfolio/com/class-adamlabsgallery.php+1303
Undefined index: last_modified
- > GET request to /wp-admin/admin.php?page=adamlabsgallery-item-skin
- > Deprecated in wp-content/plugins/photo-gallery-portfolio/com/class-adamlabsgallery.php+4261
implode(): Passing glue string after array is deprecated. Swap the parameters
- > GET request to /wp-admin/admin.php?page=adamlabsgallery
- > Notice in wp-content/plugins/photo-gallery-portfolio/com/admin/views/grid-overview.php+53
Undefined index: limit
SRP 0% 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/photo-gallery-portfolio/com/admin/views/skin-pe-icon-7-stroke-list.php
- > /wp-content/plugins/photo-gallery-portfolio/com/admin/views/skin-font-awesome-list.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'InstagramScraper\\Model\\AbstractModel' not found in wp-content/plugins/photo-gallery-portfolio/com/core/InstagramScraper/Model/Tag.php:9
- > PHP Fatal error
Uncaught Error: Class 'InstagramScraper\\Model\\AbstractModel' not found in wp-content/plugins/photo-gallery-portfolio/com/core/InstagramScraper/Model/Media.php:11
- > PHP Fatal error
Uncaught Error: Class 'InstagramScraper\\Model\\AbstractModel' not found in wp-content/plugins/photo-gallery-portfolio/com/core/InstagramScraper/Model/Like.php:6
- > PHP Notice
Undefined variable: grid in wp-content/plugins/photo-gallery-portfolio/com/admin/views/elements/general-info.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'InstagramScraper\\Model\\AbstractModel' not found in wp-content/plugins/photo-gallery-portfolio/com/core/InstagramScraper/Model/Account.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photo-gallery-portfolio/com/admin/views/elements/add-item.php:3
- > PHP Notice
Undefined variable: grid in wp-content/plugins/photo-gallery-portfolio/com/admin/views/elements/general-info.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photo-gallery-portfolio/com/admin/views/elements/source.php:6
- > PHP Fatal error
Uncaught Error: Class 'InstagramScraper\\Model\\AbstractModel' not found in wp-content/plugins/photo-gallery-portfolio/com/core/InstagramScraper/Model/Comment.php:6
- > PHP Fatal error
Uncaught Error: Class 'InstagramScraper\\Model\\AbstractModel' not found in wp-content/plugins/photo-gallery-portfolio/com/core/InstagramScraper/Model/Location.php:6
- > 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 87% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #5 in photo-gallery-portfolio/assets to your readme.txt
- Screenshots: These screenshots have no corresponding images in /assets: #12 (Masonry), #13 (Masonry with Lightbox)
photo-gallery-portfolio/index.php 85% from 13 tests
The main file in "WordPress Photo Gallery - Portfolio, Image Gallery & Video Gallery" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("photo-gallery-portfolio.php" instead of "index.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected74,832 lines of code in 123 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 82 | 7,541 | 4,748 | 32,193 |
JavaScript | 23 | 6,225 | 2,448 | 22,175 |
CSS | 13 | 1,819 | 500 | 9,296 |
JSON | 2 | 0 | 0 | 8,245 |
SVG | 2 | 0 | 0 | 2,885 |
Sass | 1 | 9 | 0 | 38 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,337)
- Method cyclomatic complexity should be reduced to less than 100 (currently 389)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 71.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,337.00 |
Average method complexity | 6.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 389.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 2 | |
Classes | 66 | |
▷ Abstract classes | 1 | 1.52% |
▷ Concrete classes | 65 | 98.48% |
▷ Final classes | 0 | 0.00% |
Methods | 890 | |
▷ Static methods | 311 | 34.94% |
▷ Public methods | 809 | 90.90% |
▷ Protected methods | 23 | 2.58% |
▷ Private methods | 58 | 6.52% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 124 | |
▷ Global constants | 3 | 2.42% |
▷ Class constants | 121 | 97.58% |
▷ Public constants | 121 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
44 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
com/admin/assets/images/adamlabscolorpicker/delete.png | 3.07KB | 0.31KB | ▼ 89.97% |
com/admin/assets/images/adamlabscolorpicker/save.png | 2.97KB | 0.31KB | ▼ 89.68% |
com/admin/includes/gutenberg-blocks/assets/images/adamlabsgallerylogo.png | 6.12KB | 3.47KB | ▼ 43.21% |
com/public/assets/images/adamlabsgallerybox_sprite.png | 1.33KB | 1.42KB | 0.00% |
com/admin/assets/images/icon-not-registered.png | 1.10KB | 0.30KB | ▼ 73.03% |