Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼4.47ms] Passed 4 tests
A check of server-side resources used by ST Gallery WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 42.21 ▲1.34 |
Dashboard /wp-admin | 3.71 ▲0.40 | 47.20 ▲0.54 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 59.45 ▲9.82 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 77.71 ▼18.95 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 35.28 ▼0.81 |
All Gallery /wp-admin/admin.php?page=st_gallery | 3.55 | 31.38 |
Add New /wp-admin/admin.php?page=st_gallery&action=add | 3.67 | 41.05 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
widget_st_gallery_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ST Gallery WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲189 | 13.86 ▼0.72 | 9.12 ▲6.92 | 45.07 ▼0.92 |
Dashboard /wp-admin | 2,284 ▲96 | 5.56 ▲0.68 | 118.91 ▲12.51 | 38.01 ▼5.33 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.34 ▲0.31 | 41.08 ▲0.01 | 33.37 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,582 ▲37 | 23.40 ▲5.20 | 660.58 ▲38.05 | 37.41 ▼16.53 |
Media Library /wp-admin/upload.php | 1,471 ▲80 | 4.73 ▲0.49 | 94.97 ▼8.14 | 40.45 ▼4.89 |
All Gallery /wp-admin/admin.php?page=st_gallery | 1,062 | 2.31 | 34.35 | 56.17 |
Add New /wp-admin/admin.php?page=st_gallery&action=add | 2,124 | 3.64 | 49.72 | 34.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_st_gallery_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=st_gallery
- > Warning in wp-content/plugins/st-gallery-wp/st-gallery.php+282
Invalid argument supplied for foreach()
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/st-gallery-wp/classes/st-widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/st-gallery-wp/classes/st-widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/st-gallery-wp/classes/st-widget.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=st_gallery&action=add
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/st-gallery-wp/admin/js/script.js?ver=6.3.1:6:19)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=st_gallery&action=add
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 30 tag instead of maximum 10
st-gallery-wp/st-gallery-wp.php Passed 13 tests
The principal PHP file in "ST Gallery WP" v. 1.0.8 is loaded by WordPress automatically on each request
68 characters long description:
Create gallery from your image post with Galleria library & Skitter.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin12,756 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 2,591 | 1,558 | 9,043 |
CSS | 5 | 129 | 43 | 1,915 |
PHP | 4 | 139 | 145 | 1,375 |
PO File | 1 | 202 | 216 | 423 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 53.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 180.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 95.83% |
▷ Protected methods | 1 | 2.08% |
▷ Private methods | 1 | 2.08% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sprite-default.png | 2.60KB | 1.33KB | ▼ 49.02% |
admin/images/icon_gallery.png | 4.01KB | 1.33KB | ▼ 66.82% |
images/sprite-square.png | 1.21KB | 0.66KB | ▼ 44.98% |
themes/classic/classic-map.png | 3.94KB | 0.90KB | ▼ 77.27% |
themes/v2/images/map.png | 4.08KB | 0.86KB | ▼ 79.04% |