Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼175.49ms] Passed 4 tests
A check of server-side resources used by Rio Photo Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 32.00 ▼0.59 |
Dashboard /wp-admin | 3.10 ▲0.04 | 41.12 ▲0.04 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 43.44 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 76.63 ▼701.15 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 32.46 ▼0.27 |
Image Settings /wp-admin/admin.php?page=manage-images | 2.99 | 25.40 |
Manage Albums /wp-admin/admin.php?page=manage-albums | 2.99 | 28.43 |
/wp-admin/admin.php?page=individual-albums | 2.99 | 27.59 |
Add Albums /wp-admin/admin.php?page=add-albums | 2.99 | 22.71 |
/wp-admin/admin.php?page=edit-album | 2.99 | 23.58 |
Add Gallery /wp-admin/admin.php?page=add-gallery | 2.99 | 27.72 |
Rio Photo Gallery /wp-admin/admin.php?page=rio-photo-gallery | 3.02 | 26.78 |
/wp-admin/admin.php?page=individual-create-albums | 3.00 | 25.39 |
Gallery Settings /wp-admin/admin.php?page=manage-options | 2.99 | 26.22 |
Server storage [IO: ▲1.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 37 new files
Database: 4 new tables, 2 new options
New tables |
---|
wp_rio_gallery |
wp_rio_image |
wp_rio_album |
wp_rio_settings |
New WordPress options |
---|
recovery_mode_email_last_sent |
jal_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Rio Photo Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,806 ▲210 | 16.46 ▲0.98 | 11.18 ▲0.84 | 46.90 ▲0.48 |
Dashboard /wp-admin | 3,059 ▲125 | 7.11 ▲1.18 | 140.10 ▲1.20 | 105.99 ▼2.50 |
Posts /wp-admin/edit.php | 2,828 ▲89 | 3.04 ▲0.35 | 72.26 ▲11.11 | 94.74 ▲11.63 |
Add New Post /wp-admin/post-new.php | 1,577 ▼106 | 14.42 ▼4.36 | 266.21 ▼115.27 | 116.81 ▲13.67 |
Media Library /wp-admin/upload.php | 1,822 ▲12 | 5.87 ▲0.83 | 127.37 ▼16.77 | 119.43 ▲1.94 |
Image Settings /wp-admin/admin.php?page=manage-images | 929 | 2.04 | 46.23 | 53.49 |
Manage Albums /wp-admin/admin.php?page=manage-albums | 1,325 | 2.95 | 77.05 | 53.53 |
/wp-admin/admin.php?page=individual-albums | 1,314 | 3.04 | 75.34 | 52.06 |
Add Albums /wp-admin/admin.php?page=add-albums | 1,282 | 2.73 | 69.56 | 47.46 |
/wp-admin/admin.php?page=edit-album | 1,463 | 2.98 | 73.34 | 54.49 |
Add Gallery /wp-admin/admin.php?page=add-gallery | 1,490 | 3.00 | 79.37 | 47.78 |
Rio Photo Gallery /wp-admin/admin.php?page=rio-photo-gallery | 1,160 | 2.71 | 65.81 | 46.24 |
/wp-admin/admin.php?page=individual-create-albums | 1,276 | 2.74 | 65.58 | 47.92 |
Gallery Settings /wp-admin/admin.php?page=manage-options | 1,579 | 2.78 | 63.76 | 44.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=manage-images
- > Error in wp-content/plugins/rio-photo-gallery/rio-photo-gallery.php+925
Uncaught ArgumentCountError: Too few arguments to function rio_rpgs_manage_images(), 1 passed in wp-includes/class-wp-hook.php on line 303 and exactly 3 expected in wp-content/plugins/rio-photo-gallery/rio-photo-gallery.php:925
Stack trace:
#0 wp-includes/class-wp-hook.php(303): rio_rpgs_manage_images()
#1 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(470): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=individual-create-albums
- > Warning in wp-content/plugins/rio-photo-gallery/rio-album.php+853
Use of undefined constant RID - assumed 'RID' (this will throw an Error in a future version of PHP)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=individual-create-albums
- > Notice in wp-content/plugins/rio-photo-gallery/rio-album.php+885
Undefined index: id
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage-options
- > User notice in wp-includes/functions.php+5663
wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=individual-albums
- > User notice in wp-includes/functions.php+5663
wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit-album
- > Notice in wp-content/plugins/rio-photo-gallery/rio-album.php+445
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=edit-album
- > Notice in wp-content/plugins/rio-photo-gallery/rio-album.php+415
Trying to get property 'album_name' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit-album
- > Notice in wp-content/plugins/rio-photo-gallery/rio-album.php+445
Trying to get property 'album_thumb' of non-object
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage-options
- > Javascript (severe) in unknown
/wp-content/plugins/rio-photo-gallery/js/dataTables.bootstrap.min.js?ver=5.8.1 4:363 Uncaught TypeError: Cannot read properties of undefined (reading 'defaults')
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-gallery
- > Network (severe)
wp-content/plugins/rio-photo-gallery/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-gallery
- > Network (severe)
wp-content/plugins/rio-photo-gallery/images/sort_asc.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=edit-album
- > Network (severe)
wp-content/rio_uploads/ - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: rio gallery, photo gallery, wordpress gallery plugin, wordpress photo gallery plugin, rio photo gallery
rio-photo-gallery/rio-photo-gallery.php 92% from 13 tests
The main file in "Rio Photo Gallery" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected6,986 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,959 |
PHP | 4 | 120 | 103 | 2,367 |
CSS | 10 | 21 | 59 | 1,169 |
JavaScript | 6 | 27 | 31 | 491 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 35 | |
▷ Named functions | 35 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 45.19KB | 18.43KB | ▼ 59.20% |
assets/screenshot-3.png | 88.32KB | 36.04KB | ▼ 59.19% |
assets/screenshot-2.png | 46.70KB | 18.13KB | ▼ 61.17% |