Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.97ms] Passed 4 tests
A check of server-side resources used by Photo Gallery RB
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.03 ▼1.00 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.11 ▲0.83 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 44.13 ▲1.22 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.83 ▼8.91 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.00 ▲1.80 |
Rb Photo Gallery /wp-admin/options-general.php?page=rb_photo_gallery_settings | 3.25 | 30.11 |
Server storage [IO: ▲2.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 350 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_photo_gallery_rb_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Photo Gallery RB
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.20 ▼1.17 | 1.73 ▼0.02 | 45.43 ▲3.57 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.08 | 112.58 ▲9.51 | 44.59 ▲2.41 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.04 ▲0.00 | 32.97 ▼3.12 | 34.64 ▲2.57 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.38 ▲0.22 | 621.92 ▼56.94 | 50.71 ▼3.08 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.00 | 96.62 ▼5.69 | 41.51 ▼5.92 |
Rb Photo Gallery /wp-admin/options-general.php?page=rb_photo_gallery_settings | 799 | 2.06 | 25.21 | 23.98 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_photo_gallery_rb_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rb_photo_gallery_settings
- > Notice in wp-content/plugins/photo-gallery-rb/options.php+37
Undefined index: enable_everywhere
SRP 50% from 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/photo-gallery-rb/widget.php:9
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Photo Gallery plugin options) image required
photo-gallery-rb/photo-gallery-rb.php Passed 13 tests
The main PHP script in "Photo Gallery RB" version 1.0.10 is automatically included on every request by WordPress
124 characters long description:
Photo gallery plugin with wide range of configuration option. Simple image management tools. Customizable thumbnails layout.
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
Success! There were no dangerous files found in this plugin52,148 lines of code in 246 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 93 | 3,085 | 4,527 | 25,951 |
JavaScript | 50 | 1,899 | 1,032 | 22,246 |
PO File | 98 | 882 | 882 | 3,714 |
PHP | 4 | 61 | 32 | 236 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 18.75% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |
screenshot-1.png | 9.57KB | 4.84KB | ▼ 49.43% |