Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼297.29ms] Passed 4 tests
This is a short check of server-side resources used by Simple Photo Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 57.58 ▲8.09 |
Dashboard /wp-admin | 3.45 ▲0.04 | 38.29 ▲2.47 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 36.86 ▼11.37 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 95.97 ▼1,177.77 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 23.06 ▼2.48 |
Albums /wp-admin/admin.php?page=wppg_album | 3.52 | 28.56 |
Settings /wp-admin/admin.php?page=wppg_settings | 3.41 | 28.30 |
Gallery /wp-admin/admin.php?page=wppg_gallery | 3.61 | 36.36 |
Server storage [IO: ▲1.31MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 79 new files
Database: 5 new tables, 2 new options
New tables |
---|
wp_wppg_album |
wp_wppg_downloads |
wp_wppg_gallery |
wp_wppg_global_meta |
wp_wppg_settings |
New WordPress options |
---|
wp_photo_configs |
wp_photo_db_version |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Photo Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,913 ▲159 | 16.49 ▲0.88 | 11.02 ▲5.15 | 5.81 ▲3.13 |
Dashboard /wp-admin | 2,915 ▲71 | 6.19 ▲0.06 | 149.03 ▲20.50 | 179.90 ▲23.63 |
Posts /wp-admin/edit.php | 2,742 ▲51 | 3.26 ▲0.02 | 66.58 ▲1.07 | 165.92 ▲24.71 |
Add New Post /wp-admin/post-new.php | 1,693 ▼80 | 18.69 ▼3.20 | 386.70 ▼97.38 | 214.93 ▲57.56 |
Media Library /wp-admin/upload.php | 1,733 ▲35 | 5.46 ▼0.06 | 129.21 ▼5.65 | 219.89 ▲33.94 |
Albums /wp-admin/admin.php?page=wppg_album | 1,474 | 6.10 | 98.74 | 130.43 |
Settings /wp-admin/admin.php?page=wppg_settings | 1,704 | 6.14 | 84.06 | 153.89 |
Gallery /wp-admin/admin.php?page=wppg_gallery | 1,748 | 6.43 | 82.52 | 141.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall successfully, leaving 5 tables in the database
- wp_wppg_global_meta
- wp_wppg_album
- wp_wppg_settings
- wp_wppg_gallery
- wp_wppg_downloads
- This plugin did not uninstall successfully, leaving 2 options in the database
- wp_photo_configs
- wp_photo_db_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Photo_Gallery_Admin_Menu' not found in wp-content/plugins/simple-photo-gallery/admin/wppg-photo-settings-menu.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Photo_Gallery_List_Table' not found in wp-content/plugins/simple-photo-gallery/admin/wppg-list-galleries.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-photo-gallery/classes/wppg-photo-config.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Photo_Gallery_List_Table' not found in wp-content/plugins/simple-photo-gallery/admin/wppg-list-albums.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Photo_Gallery_Admin_Menu' not found in wp-content/plugins/simple-photo-gallery/admin/wppg-album-menu.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Photo_Gallery_List_Table' not found in wp-content/plugins/simple-photo-gallery/admin/wppg-list-gallery-images.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Photo_Gallery_Admin_Menu' not found in wp-content/plugins/simple-photo-gallery/admin/wppg-gallery-menu.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wppg_gallery
- > Network (severe)
wp-content/plugins/simple-photo-gallery/js/wppg-gallery-admin-script.js?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wppg_album
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,thickbox,underscore,shortcode,media-upload,utils,moxiejs,plupload&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/simple-photo-gallery/js/wppg_media_uploader.js?ver=5.9.2:15:38)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,thickbox,underscore,shortcode,media-upload,utils,moxiejs,plupload&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,thickbox,underscore,shortcode,media-upload,utils,moxiejs,plupload&ver=5.9.2:2:30340)" undefined
- > GET request to /wp-admin/admin.php?page=wppg_album
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,thickbox,underscore,shortcode,media-upload,utils,moxiejs,plupload&ver=5.9.2 1:31702 Uncaught TypeError: jQuery(...).live is not a function
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wppg_gallery
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/simple-photo-gallery/js/wppg_media_uploader.js?ver=5.9.2:15:38)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30340)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wppg_gallery
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2 1:31702 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
simple-photo-gallery/wppg-photo-gallery.php 85% from 13 tests
The entry point to "Simple Photo Gallery" version v1.8.1... is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-photo-gallery.php" instead of "wppg-photo-gallery.php")
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "v1.8.1...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin6,837 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 734 | 754 | 4,687 |
PO File | 2 | 244 | 282 | 823 |
CSS | 12 | 59 | 43 | 802 |
JavaScript | 11 | 25 | 258 | 506 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 22.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 1 | 3.70% |
▷ Concrete classes | 26 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 46 | 21.30% |
▷ Public methods | 216 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 20 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/photo-seller-banner-240-103.png | 12.04KB | 10.92KB | ▼ 9.33% |
images/plugin-icon.png | 1.64KB | 0.91KB | ▼ 44.57% |
images/wppg_logo_sm.png | 7.60KB | 2.25KB | ▼ 70.34% |
js/flexslider/images/bg_play_pause.png | 1.51KB | 0.52KB | ▼ 65.52% |
images/Camera-icon-24x24.png | 4.08KB | 1.33KB | ▼ 67.44% |