Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+708
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.70MB] [CPU: ▼53.54ms] Passed 4 tests
Server-side resources used by Social Photo Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.33 ▼1.18 | 7.70 ▼31.01 |
Dashboard /wp-admin | 2.35 ▼1.00 | 7.47 ▼43.89 |
Posts /wp-admin/edit.php | 2.35 ▼1.05 | 10.12 ▼47.35 |
Add New Post /wp-admin/post-new.php | 2.35 ▼3.58 | 7.80 ▼91.92 |
Media Library /wp-admin/upload.php | 2.35 ▼0.92 | 8.71 ▼26.19 |
Gallery Settings /wp-admin/admin.php?page=gallery-settings | 2.35 | 9.06 |
Add Album /wp-admin/admin.php?page=add-album | 2.35 | 9.07 |
Add Images /wp-admin/admin.php?page=add-imgae | 2.35 | 7.25 |
Show Album /wp-admin/admin.php?page=social-photo-gallery | 2.35 | 7.96 |
Server storage [IO: ▲1.84MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- There were 1 file (1.51KB) illegally modified outside of "wp-content/plugins/social-photo-gallery/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/single-gallery.php
Filesystem: 82 new files
Database: 2 new tables, 8 new options
New tables |
---|
spg_album |
spg_albumimages |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
album_path |
widget_recent-comments |
root_album_name |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Photo Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,055 ▲294 | 14.47 ▼0.17 | 26.54 ▲24.49 | 50.25 ▲5.97 |
Dashboard /wp-admin | 2,244 ▲64 | 5.73 ▲0.08 | 90.96 ▲2.95 | 45.19 ▼0.55 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.23 ▲0.26 | 38.08 ▼1.53 | 39.67 ▲2.96 |
Add New Post /wp-admin/post-new.php | 1,564 ▲29 | 23.02 ▲4.96 | 644.37 ▲25.20 | 58.66 ▼18.04 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.29 ▲0.12 | 97.73 ▼10.97 | 43.75 ▼7.55 |
Gallery Settings /wp-admin/admin.php?page=gallery-settings | 978 | 1.81 | 23.40 | 27.02 |
Add Album /wp-admin/admin.php?page=add-album | 902 | 1.91 | 26.25 | 32.52 |
Add Images /wp-admin/admin.php?page=add-imgae | 906 | 1.93 | 25.05 | 27.80 |
Show Album /wp-admin/admin.php?page=social-photo-gallery | 847 | 1.88 | 24.69 | 25.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+708
Trying to access array offset on value of type bool
- The plugin did not uninstall successfully, leaving 2 tables in the database
- spg_albumimages
- spg_album
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=social-photo-gallery
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+708
Trying to access array offset on value of type bool
- 40 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=social-photo-gallery
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-album
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+425
Undefined variable: album
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-imgae
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+645
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=add-album
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+424
Trying to get property 'album_title' of non-object
- > GET request to /wp-admin/admin.php?page=add-album
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+425
Trying to get property 'album_description' of non-object
- > GET request to /wp-admin/admin.php?page=add-imgae
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+447
Undefined index: album_id
- > GET request to /wp-admin/admin.php?page=add-imgae
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+690
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=add-imgae
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+690
Trying to get property 'folder_name' of non-object
- > GET request to /wp-admin/admin.php?page=add-imgae
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+602
Undefined index: upload
- > GET request to /wp-admin/admin.php?page=add-imgae
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+645
Undefined variable: image
- > GET request to /wp-admin/admin.php?page=add-imgae
- > Notice in wp-content/plugins/social-photo-gallery/socialphotogallery.php+645
Trying to get property 'image_caption' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/social-photo-gallery/single-gallery.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/social-photo-gallery/socialphotogallery.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
6 plugin tags: album, woocommerce, gallery, plugin, photo gallery...
social-photo-gallery/socialphotogallery.php 92% from 13 tests
The primary PHP file in "Social Photo Gallery" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-photo-gallery.php" instead of "socialphotogallery.php")
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
Success! There were no dangerous files found in this plugin3,002 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 73 | 29 | 881 |
JavaScript | 4 | 76 | 37 | 760 |
CSS | 5 | 98 | 93 | 633 |
HTML | 1 | 121 | 0 | 488 |
SVG | 1 | 0 | 0 | 240 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 20 | |
▷ Named functions | 20 | 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
30 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prettyPhoto/dark_rounded/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |
images/prettyPhoto/default/sprite_next.png | 1.33KB | 0.39KB | ▼ 70.69% |
images/prettyPhoto/facebook/btnPrevious.png | 0.81KB | 0.58KB | ▼ 27.90% |
images/prettyPhoto/light_rounded/sprite.png | 4.00KB | 2.56KB | ▼ 36.16% |
images/prettyPhoto/dark_square/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |