Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼6.73ms] Passed 4 tests
This is a short check of server-side resources used by Photo Gallery, Images, Slider in Rbs Image Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 41.09 ▼7.15 |
Dashboard /wp-admin | 3.61 ▲0.27 | 50.27 ▼21.25 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 48.90 ▲0.55 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.41 | 94.34 ▲0.95 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 40.12 ▲3.88 |
Manage Galleries /wp-admin/edit.php?post_type=robo_gallery_table | 3.59 | 39.74 |
Settings /wp-admin/edit.php?post_type=robo_gallery_table&page=robo-gallery-settings | 3.50 | 38.92 |
Support /wp-admin/edit.php?post_type=robo_gallery_table&page=robo-gallery-support | 3.48 | 34.44 |
Gallery Demo /wp-admin/edit.php?post_type=robo_gallery_table&page=robo-gallery-demo | 3.48 | 42.02 |
Overview /wp-admin/edit.php?post_type=robo_gallery_table&page=overview | 3.54 | 44.28 |
Video Guides /wp-admin/edit.php?post_type=robo_gallery_table&page=robo-gallery-guides | 3.48 | 30.77 |
Add Gallery / Images /wp-admin/post-new.php?post_type=robo_gallery_table&showDialog=1 | 4.42 | 84.41 |
Add-ons /wp-admin/edit.php?post_type=robo_gallery_table&page=robo_gallery_table-addons | 3.56 | 32.62 |
Pro Version /wp-admin/edit.php?post_type=robo_gallery_table&page=robo-gallery-gopro | 3.48 | 33.84 |
Server storage [IO: ▲7.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 853 new files
Database: no new tables, 11 new options
New WordPress options |
---|
RoboGalleryInstallVersion |
photonic_options |
widget_rbs_widget |
theysaidso_admin_options |
widget_recent-comments |
rbs_gallery_db_version |
db_upgraded |
RoboGalleryInstallDate |
widget_theysaidso_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Photo Gallery, Images, Slider in Rbs Image Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲138 | 14.42 ▲0.47 | 1.62 ▼0.28 | 33.08 ▼9.75 |
Dashboard /wp-admin | 2,280 ▲100 | 6.11 ▲0.51 | 114.30 ▲22.83 | 74.16 ▲34.83 |
Posts /wp-admin/edit.php | 2,222 ▲122 | 3.30 ▲1.32 | 50.34 ▲15.16 | 92.46 ▲57.80 |
Add New Post /wp-admin/post-new.php | 6,291 ▲4,756 | 20.02 ▼5.21 | 967.98 ▲362.11 | 38.43 ▼19.78 |
Media Library /wp-admin/upload.php | 1,490 ▲87 | 5.70 ▲1.48 | 129.18 ▲31.61 | 88.09 ▲45.09 |
Manage Galleries /wp-admin/edit.php?post_type=robo_gallery_table | 1,267 | 3.58 | 52.75 | 34.38 |
Settings /wp-admin/edit.php?post_type=robo_gallery_table&page=robo-gallery-settings | 933 | 2.96 | 41.10 | 28.18 |
Support /wp-admin/edit.php?post_type=robo_gallery_table&page=robo-gallery-support | 2,942 | 3.76 | 92.24 | 114.15 |
Gallery Demo /wp-admin/edit.php?post_type=robo_gallery_table&page=robo-gallery-demo | 3,597 | 3.35 | 61.37 | 116.69 |
Overview /wp-admin/edit.php?post_type=robo_gallery_table&page=overview | 1,000 | 2.97 | 62.54 | 63.43 |
Video Guides /wp-admin/edit.php?post_type=robo_gallery_table&page=robo-gallery-guides | 1,213 | 4.18 | 84.93 | 36.93 |
Add Gallery / Images /wp-admin/post-new.php?post_type=robo_gallery_table&showDialog=1 | 7,240 | 6.46 | 310.51 | 141.20 |
Add-ons /wp-admin/edit.php?post_type=robo_gallery_table&page=robo_gallery_table-addons | 1,041 | 3.41 | 52.07 | 37.83 |
Pro Version /wp-admin/edit.php?post_type=robo_gallery_table&page=robo-gallery-gopro | 1,914 | 2.54 | 49.44 | 94.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 11 options in the database
- can_compress_scripts
- widget_recent-posts
- RoboGalleryInstallVersion
- theysaidso_admin_options
- db_upgraded
- rbs_gallery_db_version
- photonic_options
- widget_recent-comments
- widget_rbs_widget
- RoboGalleryInstallDate
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 29× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/robo-gallery/app/extensions/fields/template/field/text/slider.tpl.php
- > /wp-content/plugins/robo-gallery/app/extensions/fields/template/field/textarea/default.tpl.php
- > /wp-content/plugins/robo-gallery/app/extensions/fields/template/field/composite/default.tpl.php
- > /wp-content/plugins/robo-gallery/app/extensions/fields/template/field/text/default/llc4.tpl.php
- > /wp-content/plugins/robo-gallery/app/extensions/fields/template/metabox/default.tpl.php
- > /wp-content/plugins/robo-gallery/app/extensions/fields/template/field/checkbox/group.tpl.php
- > /wp-content/plugins/robo-gallery/app/extensions/fields/template/field/text/color.tpl.php
- > /wp-content/plugins/robo-gallery/app/extensions/fields/template/field/checkbox/group-switch.tpl.php
- > /wp-content/plugins/robo-gallery/app/extensions/fields/template/field/checkbox/switch/c3.tpl.php
- > /wp-content/plugins/robo-gallery/app/extensions/fields/template/field/text/group.tpl.php
- 558× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: value in wp-content/plugins/robo-gallery/app/extensions/fields/template/field/checkbox/switch.tpl.php on line 14
- > PHP Notice
Undefined variable: name in wp-content/plugins/robo-gallery/app/extensions/fields/template/field/custom/c2.tpl.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'ScssPhpRBE\\ScssPhp\\Ast\\Sass\\Statement\\IfRuleClause' not found in wp-content/plugins/robo-gallery/vendor/scss/scssphp-1.10.0/src/Ast/Sass/Statement/ElseClause.php:20
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/robo-gallery/app/extensions/fields/template/field/checkbox/group-button.tpl.php on line 8
- > PHP Warning
include(ROBO_GALLERY_APP_EXTENSIONS_PATHgalleryType/themes/mosaic_1.php): failed to open stream: No such file or directory in wp-content/plugins/robo-gallery/app/extensions/galleryType/themes/mosaic.php on line 4
- > PHP Warning
Use of undefined constant ROBO_GALLERY_URL - assumed 'ROBO_GALLERY_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/robo-gallery/app/extensions/fields/template/content/gallery_type/type_mosaic.tpl.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'ScssPhpRBE\\ScssPhp\\Block' not found in wp-content/plugins/robo-gallery/vendor/scss/scssphp-1.10.0/src/Block/CallableBlock.php:21
- > PHP Warning
Use of undefined constant ROBO_GALLERY_APP_EXTENSIONS_PATH - assumed 'ROBO_GALLERY_APP_EXTENSIONS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/robo-gallery/app/app.php on line 38
- > PHP Fatal error
Uncaught Error: Class 'ScssPhpRBE\\ScssPhp\\Parser\\Parser' not found in wp-content/plugins/robo-gallery/vendor/scss/scssphp-1.10.0/src/Parser/MediaQueryParser.php:23
- > PHP Notice
Undefined variable: commercial in wp-content/plugins/robo-gallery/app/extensions/manager/templates/addon.tpl.php on line 7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: gallery, photo gallery, image gallery, wordpress gallery plugin, responsive gallery
robo-gallery/robogallery.php 92% from 13 tests
The main PHP script in "Photo Gallery, Images, Slider in Rbs Image Gallery" version 3.2.17 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("robo-gallery.php" instead of "robogallery.php")
Code Analysis 95% 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
Everything looks great! No dangerous files found in this plugin93,131 lines of code in 639 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 449 | 12,019 | 16,833 | 42,912 |
JavaScript | 64 | 4,221 | 2,392 | 18,023 |
CSS | 38 | 1,473 | 935 | 16,062 |
SVG | 41 | 24 | 24 | 7,169 |
PO File | 9 | 2,223 | 2,737 | 4,802 |
HTML | 7 | 165 | 45 | 1,849 |
Markdown | 9 | 533 | 0 | 1,574 |
JSON | 9 | 0 | 0 | 391 |
Sass | 9 | 76 | 36 | 270 |
TypeScript | 1 | 5 | 0 | 45 |
Pug | 2 | 15 | 2 | 28 |
XML | 1 | 1 | 5 | 6 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,458)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 195)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 24.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,458.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 195.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 31 | |
Traits | 0 | |
Classes | 292 | |
▷ Abstract classes | 13 | 4.45% |
▷ Concrete classes | 279 | 95.55% |
▷ Final classes | 150 | 53.76% |
Methods | 2,762 | |
▷ Static methods | 220 | 7.97% |
▷ Public methods | 1,780 | 64.45% |
▷ Protected methods | 326 | 11.80% |
▷ Private methods | 656 | 23.75% |
Functions | 201 | |
▷ Named functions | 98 | 48.76% |
▷ Anonymous functions | 103 | 51.24% |
Constants | 177 | |
▷ Global constants | 47 | 26.55% |
▷ Class constants | 130 | 73.45% |
▷ Public constants | 122 | 93.85% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
28 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmbre2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
cmbre2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
images/admin/robo_gallery_icon.png | 7.25KB | 3.45KB | ▼ 52.36% |
cmbre2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
cmbre2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |