Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼7.75ms] Passed 4 tests
This is a short check of server-side resources used by OS Image Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 51.06 ▲10.90 |
Dashboard /wp-admin | 3.52 ▲0.21 | 45.63 ▼7.19 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 48.03 ▼6.64 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 81.17 ▼18.32 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 35.94 ▲1.16 |
Category /wp-admin/edit-tags.php?taxonomy=osig-category&post_type=os-image-gallery | 3.42 | 35.45 |
Image Gallery /wp-admin/edit.php?post_type=os-image-gallery | 3.54 | 40.20 |
Add New /wp-admin/post-new.php?post_type=os-image-gallery | 3.49 | 47.13 |
Server storage [IO: ▲2.28MB] [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: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for OS Image Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲241 | 14.03 ▼0.53 | 14.34 ▲12.61 | 38.35 ▼17.06 |
Dashboard /wp-admin | 2,240 ▲52 | 5.88 ▲0.98 | 103.37 ▼5.22 | 39.84 ▼4.67 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.02 ▲0.03 | 36.57 ▼1.34 | 31.05 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,573 ▲40 | 18.63 ▼4.32 | 604.70 ▼25.87 | 99.51 ▲42.64 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.09 ▼0.20 | 109.40 ▼0.49 | 50.14 ▲6.68 |
Category /wp-admin/edit-tags.php?taxonomy=osig-category&post_type=os-image-gallery | 1,293 | 2.26 | 28.91 | 26.51 |
Image Gallery /wp-admin/edit.php?post_type=os-image-gallery | 1,275 | 3.29 | 49.49 | 27.38 |
Add New /wp-admin/post-new.php?post_type=os-image-gallery | 1,962 | 3.65 | 68.55 | 47.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=os-image-gallery
- > Warning in wp-content/plugins/os-image-gallery/includes/admin/meta-boxes/views/os-image-gallery-settings.php+21
Use of undefined constant OSPT_TEXT_DOMAIN - assumed 'OSPT_TEXT_DOMAIN' (this will throw an Error in a future version of PHP)
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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'osImageGalleryPostType' not found in wp-content/plugins/os-image-gallery/includes/admin/meta-boxes/views/os-image-gallery-settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'osImageGalleryPostType' not found in wp-content/plugins/os-image-gallery/includes/admin/meta-boxes/views/os-image-gallery-slides.php:2
- > PHP Fatal error
Uncaught Error: Class 'osImageGalleryPostType' not found in wp-content/plugins/os-image-gallery/includes/admin/meta-boxes/views/os-image-gallery-shortcode.php:2
- > PHP Fatal error
Uncaught Error: Class 'osImageGalleryPostType' not found in wp-content/plugins/os-image-gallery/includes/admin/meta-boxes/views/os-image-gallery-type.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=os-image-gallery
- > Javascript (severe) in unknown
/wp-content/plugins/os-image-gallery/js/admin/custom-min.js?ver=1.3 67:23 Uncaught TypeError: e(...).wpColorPicker is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (OS Image Gallery - Listing interface), #2 (OS Image Gallery - Add new gallery interface), #3 (OS Image Gallery - Normal Gallery), #4 (OS Image Gallery - Lightbox Gallery), #5 (OS Image Gallery - Masonry Gallery), #6 (OS Image Gallery - Isotope Gallery)
os-image-gallery/os-image-gallery.php Passed 13 tests
The main PHP script in "OS Image Gallery" version 1.3 is automatically included on every request by WordPress
116 characters long description:
Creates a responsive image gallery using OS Image Gallery. WordPress plugin develop by Offshorent Softwares Pvt Ltd.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,420 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 209 | 330 | 867 |
CSS | 3 | 7 | 11 | 427 |
JavaScript | 4 | 1 | 33 | 126 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 14.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 46 | |
▷ Static methods | 5 | 10.87% |
▷ Public methods | 44 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.35% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 2.18MB with 1.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 337.87KB | 107.29KB | ▼ 68.25% |
screenshot-4.png | 806.20KB | 268.30KB | ▼ 66.72% |
images/upload.png | 0.38KB | 0.53KB | 0.00% |
screenshot-2.png | 210.25KB | 66.94KB | ▼ 68.16% |
screenshot-6.png | 402.72KB | 128.81KB | ▼ 68.01% |