Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼3.06ms] Passed 4 tests
Server-side resources used by 2BC Image Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 44.17 ▲4.58 |
Dashboard /wp-admin | 3.65 ▲0.30 | 47.23 ▼13.17 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 49.60 ▼0.86 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 95.00 ▼1.58 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 40.32 ▲3.36 |
Galleries /wp-admin/edit-tags.php?taxonomy=twobc_img_galleries&post_type=attachment | 3.57 | 35.50 |
2BC Image Gallery /wp-admin/options-general.php?page=twobc_imagegallery | 3.55 | 34.85 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
twobc_image_gallery_options |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 2BC Image Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.24 ▼1.13 | 1.81 ▲0.32 | 45.55 ▲2.52 |
Dashboard /wp-admin | 2,217 ▲32 | 5.84 ▲0.03 | 106.74 ▲4.73 | 37.63 ▼8.33 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▲0.02 | 40.22 ▼0.60 | 34.93 ▲1.08 |
Add New Post /wp-admin/post-new.php | 1,539 ▲18 | 23.10 ▼0.01 | 649.78 ▼12.17 | 64.13 ▲13.06 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.34 ▲0.12 | 93.99 ▼5.71 | 41.37 ▼1.67 |
Galleries /wp-admin/edit-tags.php?taxonomy=twobc_img_galleries&post_type=attachment | 1,284 | 2.13 | 26.87 | 29.38 |
2BC Image Gallery /wp-admin/options-general.php?page=twobc_imagegallery | 1,432 | 2.49 | 51.75 | 27.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- twobc_image_gallery_options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 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 everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: You are using too many tags: 20 tag instead of maximum 10
2bc-image-gallery/2bc-image-gallery.php Passed 13 tests
The main PHP script in "2BC Image Gallery" version 2.0.1 is automatically included on every request by WordPress
124 characters long description:
Add tags to images and group them into galleries, easily set options to display the lightbox galleries, or use the shortcode
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,447 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 405 | 747 | 2,191 |
PO File | 2 | 193 | 205 | 506 |
JavaScript | 3 | 82 | 66 | 476 |
CSS | 2 | 49 | 21 | 274 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 124)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 175.00 |
▷ Minimum class complexity | 124.00 |
▷ Maximum class complexity | 226.00 |
Average method complexity | 9.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 124.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 | 43 | |
▷ Static methods | 39 | 90.70% |
▷ Public methods | 33 | 76.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 23.26% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
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 |
includes/images/scsheet60a.png | 6.82KB | 4.00KB | ▼ 41.30% |
includes/images/loading_overlay.png | 0.11KB | 0.09KB | ▼ 13.64% |