Benchmarks
Plugin footprint 65% 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: ▲1.34MB] [CPU: ▲3.71ms] Passed 4 tests
An overview of server-side resources used by Gallery - Image and Video Gallery with Thumbnails
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.79 ▲1.33 | 45.33 ▲0.91 |
Dashboard /wp-admin | 4.65 ▲1.35 | 53.58 ▲4.81 |
Posts /wp-admin/edit.php | 4.70 ▲1.35 | 55.03 ▲8.59 |
Add New Post /wp-admin/post-new.php | 7.23 ▲1.35 | 91.97 ▲0.51 |
Media Library /wp-admin/upload.php | 4.57 ▲1.34 | 46.76 ▲14.92 |
Themes /wp-admin/admin.php?page=wpdevart_gallery_themes | 4.48 | 41.38 |
Gallery /wp-admin/admin.php?page=Wpdevart_gallery_menu | 4.57 | 42.98 |
Crope /wp-admin/admin.php?page=Wpdevart_gallery_crop | 4.48 | 37.75 |
Shortcode Generator /wp-admin/admin.php?page=Wpdevart_gallery_shordcode_generator | 4.45 | 40.16 |
Featured Plugins /wp-admin/admin.php?page=Wpdevart_gallery_featured_plugins | 4.47 | 38.34 |
Hire an Expert /wp-admin/admin.php?page=Wpdevart_gallery_hire_expert | 4.48 | 39.88 |
Popup /wp-admin/admin.php?page=wpdevart_gallery_popup | 4.48 | 41.99 |
Server storage [IO: ▲4.08MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- The plugin illegally modified 5 files (0.00KB) outside of "wp-content/plugins/gallery-album/" and "wp-content/uploads/"
- (new file) wp-content/wpdevart_gallery/attachment/.empty
- (new file) wp-content/wpdevart_gallery/original/.empty
- (new file) wp-content/wpdevart_gallery/width/.empty
- (new file) wp-content/wpdevart_gallery/main/.empty
- (new file) wp-content/wpdevart_gallery/height/.empty
Filesystem: 111 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_wpdevart_gallery_popup_theme |
wp_wpdevart_images |
wp_wpdevart_gallery_theme |
wp_wpdevart_gallery |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gallery - Image and Video Gallery with Thumbnails
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,975 ▲240 | 13.66 ▼1.08 | 6.54 ▲4.54 | 36.43 ▼6.83 |
Dashboard /wp-admin | 2,259 ▲71 | 4.91 ▲0.05 | 98.47 ▼19.00 | 39.46 ▼6.39 |
Posts /wp-admin/edit.php | 2,142 ▲50 | 2.03 ▲0.03 | 35.07 ▼1.69 | 35.53 ▲1.52 |
Add New Post /wp-admin/post-new.php | 1,575 ▲42 | 23.23 ▲0.10 | 644.44 ▼4.46 | 62.11 ▲14.20 |
Media Library /wp-admin/upload.php | 1,444 ▲62 | 4.21 ▼0.10 | 97.14 ▼7.22 | 43.07 ▼0.71 |
Themes /wp-admin/admin.php?page=wpdevart_gallery_themes | 1,082 | 2.64 | 54.88 | 48.75 |
Gallery /wp-admin/admin.php?page=Wpdevart_gallery_menu | 1,382 | 1.90 | 33.13 | 58.97 |
Crope /wp-admin/admin.php?page=Wpdevart_gallery_crop | 954 | 2.03 | 28.68 | 41.13 |
Shortcode Generator /wp-admin/admin.php?page=Wpdevart_gallery_shordcode_generator | 979 | 2.30 | 24.79 | 27.90 |
Featured Plugins /wp-admin/admin.php?page=Wpdevart_gallery_featured_plugins | 1,124 | 2.01 | 23.43 | 40.59 |
Hire an Expert /wp-admin/admin.php?page=Wpdevart_gallery_hire_expert | 896 | 2.02 | 23.52 | 29.55 |
Popup /wp-admin/admin.php?page=wpdevart_gallery_popup | 1,089 | 2.69 | 58.27 | 39.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 4 tables
- wp_wpdevart_gallery_theme
- wp_wpdevart_gallery_popup_theme
- wp_wpdevart_gallery
- wp_wpdevart_images
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 36× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gallery-album/includes/admin/gallery_page_class.php on line 846
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gallery-album/includes/admin/gallery_page_class.php on line 829
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/gallery-album/includes/install_databese.php on line 180
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gallery-album/includes/admin/gallery_page_class.php on line 842
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/gallery-album/includes/install_databese.php on line 179
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gallery-album/includes/admin/gallery_page_class.php on line 852
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gallery-album/includes/admin/gallery_page_class.php on line 834
- > PHP Warning
mkdir(): No such file or directory in wp-content/plugins/gallery-album/includes/admin/gallery_page_class.php on line 849
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gallery-album/includes/admin/gallery_page_class.php on line 839
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gallery-album/includes/admin/gallery_page_class.php on line 847
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpdevart_gallery_popup
- > Network (severe)
wp-content/plugins/gallery-album/includes/admin/images/default%7B%7Brows.default%7D%7D.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: photo gallery, image gallery, gallery, responsive gallery, wordpress gallery plugin
gallery-album/gallery-album.php 92% from 13 tests
The main PHP script in "Gallery - Image and Video Gallery with Thumbnails" version 2.0.3 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin15,182 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 678 | 347 | 7,342 |
JavaScript | 10 | 318 | 337 | 4,104 |
CSS | 9 | 224 | 76 | 3,051 |
SVG | 1 | 0 | 0 | 685 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 34.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 185 | |
▷ Static methods | 14 | 7.57% |
▷ Public methods | 102 | 55.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 83 | 44.86% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
35 PNG files occupy 0.22MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/images/featured_plugins/coming_soon.png | 12.40KB | 5.21KB | ▼ 57.98% |
includes/admin/images/gallery_img.png | 1.59KB | 0.58KB | ▼ 63.39% |
includes/admin/images/featured_plugins/Pricing-table.png | 12.94KB | 4.08KB | ▼ 68.44% |
includes/admin/images/featured_plugins/facebook-comments-icon.png | 35.59KB | 9.23KB | ▼ 74.06% |
includes/admin/images/icon_bt_40.png | 1.19KB | 0.38KB | ▼ 67.90% |