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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.56ms] Passed 4 tests
Analyzing server-side resources used by Gallery RB
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.76 ▼10.96 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.18 ▼4.11 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.44 ▲0.18 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.79 ▼13.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.32 ▼1.57 |
RB Gallery /wp-admin/options-general.php?page=rb_gallery_settings | 3.26 | 32.04 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gallery RB
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲42 | 13.25 ▼0.84 | 4.35 ▲2.07 | 43.35 ▼10.19 |
Dashboard /wp-admin | 2,234 ▲31 | 4.86 ▼0.99 | 107.11 ▼10.28 | 37.85 ▼6.66 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.05 ▲0.05 | 43.69 ▲7.36 | 37.84 ▲3.60 |
Add New Post /wp-admin/post-new.php | 1,538 ▲7 | 17.54 ▼5.64 | 662.49 ▼8.07 | 47.82 ▼6.95 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.17 ▼0.12 | 101.23 ▼3.62 | 46.53 ▲1.12 |
RB Gallery /wp-admin/options-general.php?page=rb_gallery_settings | 1,036 | 1.84 | 25.80 | 24.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rb_gallery_settings
- > Notice in wp-content/plugins/gallery-rb/options.php+59
Undefined index: enable
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rb_gallery_settings
- > Notice in wp-content/plugins/gallery-rb/options.php+74
Undefined index: cols
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rb_gallery_settings
- > Notice in wp-content/plugins/gallery-rb/options.php+112
Undefined index: size
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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:
- Screenshots: Please add images for these screenshots: #1 (Gallery plugin options), #2 (Gallery plugin view (4 cols))
gallery-rb/gallery-rb.php 92% from 13 tests
"Gallery RB" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected179 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 54 | 19 | 179 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 70.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 30.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.61MB with 0.38MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 14.83KB | 5.84KB | ▼ 60.62% |
screenshot-3.png | 273.28KB | 63.69KB | ▼ 76.69% |
screenshot-4.png | 331.03KB | 74.19KB | ▼ 77.59% |
screenshot-2.png | 3.60KB | 2.30KB | ▼ 36.08% |