Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.33MB] [CPU: ▼293.29ms] Passed 4 tests
An overview of server-side resources used by 2BC Image Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.38 | 60.88 ▲8.05 |
Dashboard /wp-admin | 3.79 ▲0.35 | 36.75 ▲3.80 |
Posts /wp-admin/edit.php | 4.02 ▲0.34 | 38.80 ▲1.67 |
Add New Post /wp-admin/post-new.php | 7.26 ▲0.25 | 93.90 ▼1,182.75 |
Media Library /wp-admin/upload.php | 3.74 ▲0.41 | 28.88 ▲4.13 |
Galleries /wp-admin/edit-tags.php?taxonomy=twobc_img_galleries&post_type=attachment | 3.74 | 28.70 |
2BC Image Gallery /wp-admin/options-general.php?page=twobc_imagegallery | 3.65 | 25.02 |
Server storage [IO: ▲0.23MB] [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: 23 new files
Database: no new tables, 1 new option
New WordPress options |
---|
twobc_image_gallery_options |
Browser metrics Passed 4 tests
An overview of browser requirements for 2BC Image Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,805 ▲61 | 16.23 ▲0.21 | 5.87 ▲0.07 | 2.60 ▲0.18 |
Dashboard /wp-admin | 2,902 ▲44 | 6.06 ▼0.27 | 118.06 ▼17.14 | 157.20 ▼4.43 |
Posts /wp-admin/edit.php | 2,701 ▲44 | 3.23 ▼0.01 | 61.61 ▼3.99 | 139.91 ▼4.87 |
Add New Post /wp-admin/post-new.php | 1,725 ▲64 | 16.93 ▲1.42 | 406.45 ▼40.89 | 158.84 ▼0.33 |
Media Library /wp-admin/upload.php | 1,713 ▲18 | 5.57 ▲0.13 | 152.86 ▲9.97 | 192.41 ▲5.07 |
Galleries /wp-admin/edit-tags.php?taxonomy=twobc_img_galleries&post_type=attachment | 1,642 | 2.76 | 54.74 | 100.93 |
2BC Image Gallery /wp-admin/options-general.php?page=twobc_imagegallery | 1,953 | 3.50 | 77.14 | 148.08 |
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
- This plugin does not fully uninstall, leaving 1 option in the database
- twobc_image_gallery_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (20 tag instead of maximum 10)
2bc-image-gallery/2bc-image-gallery.php Passed 13 tests
The main file in "2BC Image Gallery" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable 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
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods 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% |