Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼297.45ms] Passed 4 tests
Analyzing server-side resources used by RB Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.06 | 53.19 ▲1.42 |
Dashboard /wp-admin | 3.45 ▲0.04 | 34.25 ▲1.44 |
Posts /wp-admin/edit.php | 3.67 ▲0.04 | 37.71 ▼0.19 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 97.33 ▼1,191.96 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 25.75 ▲0.92 |
Add Album /wp-admin/admin.php?page=wprb_gallery_add_album | 3.35 | 22.92 |
How to Use /wp-admin/admin.php?page=wprb_gallery_notes | 3.33 | 23.81 |
RB Gallery /wp-admin/admin.php?page=wprb-gallery | 3.39 | 22.79 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: 2 new tables, no new options
New tables |
---|
wp_wp_rbgallery_pics |
wp_wp_rbgallery_albums |
Browser metrics Passed 4 tests
This is an overview of browser requirements for RB Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,970 ▲216 | 16.87 ▲1.22 | 16.61 ▲10.77 | 4.16 ▲1.37 |
Dashboard /wp-admin | 2,939 ▲81 | 6.32 ▲0.10 | 115.53 ▼16.61 | 155.91 ▼5.72 |
Posts /wp-admin/edit.php | 2,735 ▲44 | 3.24 ▼0.00 | 62.88 ▼0.25 | 143.53 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,748 ▼24 | 21.25 ▲0.13 | 438.02 ▼39.41 | 157.15 ▼3.67 |
Media Library /wp-admin/upload.php | 1,746 ▲48 | 5.54 ▲0.05 | 143.65 ▲8.72 | 186.94 ▼2.16 |
Add Album /wp-admin/admin.php?page=wprb_gallery_add_album | 1,259 | 2.87 | 59.38 | 104.56 |
How to Use /wp-admin/admin.php?page=wprb_gallery_notes | 1,236 | 2.78 | 56.63 | 116.80 |
RB Gallery /wp-admin/admin.php?page=wprb-gallery | 1,165 | 2.86 | 58.33 | 93.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/rb-gallery/public/partials/rb-gallery-public-view.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/rb-gallery/admin/partials/rb-gallery-notes-view.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/rb-gallery/admin/partials/rb-gallery-admin-view.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/rb-gallery/admin/partials/rb-gallery-add-album-view.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Tags: There are too many tags (17 tag instead of maximum 10)
- Requires at least: Version format is invalid
rb-gallery/rb-gallery.php 92% from 13 tests
The main PHP script in "RB Gallery" version 2.0.1 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,081 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 504 | 127 | 1,626 |
PHP | 15 | 397 | 289 | 1,147 |
CSS | 5 | 57 | 8 | 308 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 5 | 9.62% |
▷ Public methods | 47 | 90.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.62% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/rbgallery_sprite@2x.png | 6.40KB | 5.76KB | ▼ 9.96% |
public/css/rbgallery_overlay.png | 0.98KB | 0.09KB | ▼ 90.43% |
public/css/rbgallery_sprite.png | 1.33KB | 1.42KB | 0.00% |