Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.42MB] [CPU: ▲23.23ms] 75% from 4 tests
A check of server-side resources used by Limb Gallery | Create Beautiful Image & Video Galleries
Please have a look at the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.42MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.24 ▲5.78 | 75.02 ▲34.04 |
Dashboard /wp-admin | 9.26 ▲5.96 | 76.84 ▲23.68 |
Posts /wp-admin/edit.php | 9.26 ▲5.90 | 74.07 ▲20.50 |
Add New Post /wp-admin/post-new.php | 9.92 ▲4.04 | 115.73 ▲14.70 |
Media Library /wp-admin/upload.php | 9.26 ▲6.03 | 82.66 ▲45.56 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.26 | 61.60 |
Server storage [IO: ▲10.98MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 387 new files
Database: 8 new tables, 12 new options
New tables |
---|
wp_limb_gallery_settings |
wp_limb_gallery_galleries |
wp_limb_gallery_themes |
wp_limb_gallery_albums |
wp_limb_gallery_shortcodes |
wp_limb_gallery_galleriescontent |
wp_limb_gallery_albumscontent |
wp_limb_gallery_comments |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
fs_debug_mode |
can_compress_scripts |
widget_theysaidso_widget |
fs_active_plugins |
fs_accounts |
widget_recent-posts |
db_upgraded |
LIMB_gallery_version |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Limb Gallery | Create Beautiful Image & Video Galleries
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,866 ▲1,080 | 15.78 ▲1.11 | 61.37 ▲59.30 | 34.52 ▼12.08 |
Dashboard /wp-admin | 2,218 ▲41 | 5.66 ▲0.09 | 91.01 ▼10.46 | 74.30 ▲29.05 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.02 ▲0.01 | 34.01 ▼4.48 | 32.16 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.34 ▼1.23 | 684.38 ▼25.57 | 174.15 ▲124.09 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.14 ▼0.10 | 120.06 ▲15.06 | 77.77 ▲29.59 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,093 | 1.66 | 24.67 | 29.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/limb-gallery/vendor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie tables detected upon uninstall: 8 tables
- wp_limb_gallery_settings
- wp_limb_gallery_albums
- wp_limb_gallery_galleries
- wp_limb_gallery_themes
- wp_limb_gallery_albumscontent
- wp_limb_gallery_shortcodes
- wp_limb_gallery_comments
- wp_limb_gallery_galleriescontent
- This plugin did not uninstall successfully, leaving 12 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_limb_gallery_thumbnail_widget
- fs_accounts
- fs_debug_mode
- LIMB_gallery_act_status
- db_upgraded
- widget_recent-posts
- LIMB_gallery_version
- ...
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'LIMB_Gallery' not found in wp-content/plugins/limb-gallery/frontend/controllers/Controller.php:8
- > PHP Fatal error
Uncaught Error: Class 'GRSGalleryAjax' not found in wp-content/plugins/limb-gallery/ajax/GRSComment.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/limb-gallery/js/localizations/frontend.php:4
- > PHP Fatal error
Uncaught Error: Class 'LIMB_Gallery' not found in wp-content/plugins/limb-gallery/uploader/UploadHandler.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/limb-gallery/js/localizations/admin.php:4
- > PHP Fatal error
Uncaught Error: Class 'GRSGalleryAjax' not found in wp-content/plugins/limb-gallery/embed/GRSGalleryEmbed.php:7
- > PHP Fatal error
Uncaught Error: Class 'LIMB_Gallery' not found in wp-content/plugins/limb-gallery/uploader/UploadHandler.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/limb-gallery/admin/controllers/LimbGalleryThumbnailWidgetController.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: video gallery, gallery, carousel, image gallery, best gallery plugin...
limb-gallery/gallery-rs.php 85% from 13 tests
The principal PHP file in "Limb Gallery | Create Beautiful Image & Video Galleries" v. 1.5.7 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("limb-gallery.php" instead of "gallery-rs.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin88,489 lines of code in 252 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 152 | 8,527 | 18,123 | 47,206 |
PO File | 25 | 8,397 | 10,538 | 17,353 |
CSS | 24 | 874 | 162 | 13,167 |
HTML | 18 | 4 | 28 | 5,019 |
JavaScript | 19 | 453 | 1,065 | 4,574 |
SVG | 11 | 0 | 6 | 927 |
JSON | 3 | 0 | 0 | 243 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 71.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 80 | |
▷ Abstract classes | 2 | 2.50% |
▷ Concrete classes | 78 | 97.50% |
▷ Final classes | 0 | 0.00% |
Methods | 1,557 | |
▷ Static methods | 200 | 12.85% |
▷ Public methods | 1,048 | 67.31% |
▷ Protected methods | 76 | 4.88% |
▷ Private methods | 433 | 27.81% |
Functions | 100 | |
▷ Named functions | 99 | 99.00% |
▷ Anonymous functions | 1 | 1.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
42 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/captcha/backgrounds/45-degree-fabric.png | 8.93KB | 4.93KB | ▼ 44.79% |
images/admin/header.png | 6.42KB | 2.86KB | ▼ 55.46% |
css/captcha/backgrounds/white-carbon.png | 2.54KB | 0.91KB | ▼ 64.15% |
vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
js/colorpicker/img/bootstrap-colorpicker/hue.png | 2.90KB | 0.50KB | ▼ 82.71% |