Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▲2.13ms] Passed 4 tests
Server-side resources used by RPS Image Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 42.47 ▲2.43 |
Dashboard /wp-admin | 3.88 ▲0.58 | 53.10 ▼0.71 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 48.01 ▲1.87 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 95.49 ▲13.34 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 38.73 ▲4.91 |
Server storage [IO: ▲2.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 101 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
_rps_image_gallery_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for RPS Image Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.38 | 1.86 ▲0.10 | 42.99 ▼2.11 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▼0.00 | 112.75 ▼3.63 | 44.99 ▼0.15 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.98 ▼0.03 | 33.55 ▼3.42 | 35.01 ▲1.49 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.29 ▲0.80 | 622.82 ▼69.20 | 66.35 ▲9.52 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.19 ▲0.01 | 99.37 ▼3.49 | 43.96 ▼3.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- _rps_image_gallery_version
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'rpsfancybox\\display\\SlideshowView' not found in wp-content/plugins/rps-image-gallery/dependencies/rpsfancybox/display/Slideshow2View.php:14
- > PHP Fatal error
Uncaught Error: Class 'rpsfancybox\\display\\SlideshowView' not found in wp-content/plugins/rps-image-gallery/dependencies/rpsfancybox/display/Slideshow1View.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (65 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots need descriptions #2, #3, #4 in rps-image-gallery/assets to your readme.txt
rps-image-gallery/rps-image-gallery.php Passed 13 tests
The primary PHP file in "RPS Image Gallery" version 2.2.7 is used by WordPress to initiate all plugin functionality
76 characters long description:
A responsive image gallery with slideshow and advanced linking capabilities.
Code Analysis Passed 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
There were no executable files found in this plugin8,834 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 1,077 | 1,943 | 3,949 |
JavaScript | 16 | 1,133 | 483 | 3,594 |
CSS | 8 | 154 | 52 | 918 |
Sass | 3 | 128 | 8 | 373 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 16.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 3 | 10.71% |
▷ Concrete classes | 25 | 89.29% |
▷ Final classes | 13 | 52.00% |
Methods | 307 | |
▷ Static methods | 16 | 5.21% |
▷ Public methods | 261 | 85.02% |
▷ Protected methods | 18 | 5.86% |
▷ Private methods | 28 | 9.12% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 38 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 38 | 100.00% |
▷ Public constants | 38 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
34 PNG files occupy 2.33MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 21.41KB | 9.56KB | ▼ 55.35% |
assets/banner-772x250.png | 61.57KB | 26.70KB | ▼ 56.63% |
dependencies/fancybox/fancy_shadow_s.png | 0.11KB | 0.19KB | 0.00% |
dependencies/rpsfancybox/fancybox2/fancybox_sprite.png | 2.72KB | 2.01KB | ▼ 26.14% |
dependencies/fancybox2/fancybox_sprite@2x.png | 6.40KB | 5.76KB | ▼ 9.96% |