Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.26MB] [CPU: ▲1.72ms] Passed 4 tests
This is a short check of server-side resources used by Bootstrap Multi-language Responsive Portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 51.79 ▲9.53 |
Dashboard /wp-admin | 3.57 ▲0.23 | 61.66 ▼3.71 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 59.35 ▲6.28 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 96.21 ▼5.23 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 48.64 ▲14.77 |
Portfolio Settings /wp-admin/edit.php?post_type=portfolio&page=portfolio-settings | 3.47 | 43.43 |
Add New Item /wp-admin/post-new.php?post_type=portfolio | 3.64 | 60.50 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio | 3.49 | 43.69 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-types&post_type=portfolio | 3.49 | 43.22 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 3.53 | 45.95 |
Server storage [IO: ▲6.39MB] [DB: ▲0.01MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/bootstrap-multi-language-responsive-portfolio/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 44 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_theysaidso_widget |
portfolio_title |
db_upgraded |
widget_recent-posts |
portfolio_layout |
theysaidso_admin_options |
can_compress_scripts |
widget_widget_wpt_portfolio_featured_recent_posts |
portfolio_content |
portfolio-page |
... |
Browser metrics Passed 4 tests
Bootstrap Multi-language Responsive Portfolio: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲222 | 14.03 ▼0.20 | 13.29 ▲11.70 | 52.49 ▲12.41 |
Dashboard /wp-admin | 2,270 ▲70 | 5.84 ▲0.98 | 98.80 ▼4.74 | 40.57 ▼5.55 |
Posts /wp-admin/edit.php | 2,146 ▲43 | 2.04 ▲0.03 | 37.03 ▼1.82 | 39.25 ▲2.10 |
Add New Post /wp-admin/post-new.php | 1,565 ▲25 | 23.10 ▼0.10 | 653.67 ▼21.16 | 65.47 ▲9.73 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.28 ▲0.10 | 115.68 ▲7.65 | 48.75 ▲3.41 |
Portfolio Settings /wp-admin/edit.php?post_type=portfolio&page=portfolio-settings | 1,065 | 2.06 | 28.96 | 50.82 |
Add New Item /wp-admin/post-new.php?post_type=portfolio | 2,647 | 7.93 | 172.39 | 76.46 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio | 1,289 | 2.20 | 32.16 | 32.81 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-types&post_type=portfolio | 1,317 | 2.20 | 31.14 | 30.68 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 1,166 | 1.96 | 33.55 | 32.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_widget_wpt_portfolio_featured_recent_posts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Notice in wp-content/plugins/bootstrap-multi-language-responsive-portfolio/wpt-posttype-portfolio.php+554
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bootstrap-multi-language-responsive-portfolio/wpt-posttype-portfolio.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bootstrap-multi-language-responsive-portfolio/content-portfolio.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bootstrap-multi-language-responsive-portfolio/portfolio.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bootstrap-multi-language-responsive-portfolio/single-portfolio.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bootstrap-multi-language-responsive-portfolio/template-portfolio.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bootstrap-multi-language-responsive-portfolio/taxonomy-portfolio-types.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/bootstrap-multi-language-responsive-portfolio/content-single-portfolio.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bootstrap-multi-language-responsive-portfolio/widget-featured-recent-posts.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bootstrap-multi-language-responsive-portfolio/portfolio-shortcode.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 fix the following browser errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).sortable is not a function" "TypeError: $(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/bootstrap-multi-language-responsive-portfolio/js/portfolio-post.js?ver=1.0:86:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).sortable is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Two Column Portfolio Page.), #2 (Three Column Portfolio Page.), #3 (Four Column Portfolio Page.), #4 (Portfolio Detailed Page), #5 (Portfolio Section Generated From Shortcode.), #6 (Portfolio Listing In Admin Area.), #7 (Added Portfolio Item In Admin Area.), #8 (Portfolio Admin Settings.), #9 (Portfolio Featured Recent Posts Widget.)
bootstrap-multi-language-responsive-portfolio/portfolio.php 85% from 13 tests
Analyzing the main PHP file in "Bootstrap Multi-language Responsive Portfolio" version 1.0
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("bootstrap-multi-language-responsive-portfolio.php" instead of "portfolio.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected9,006 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 25 | 32 | 6,160 |
PHP | 9 | 341 | 162 | 1,197 |
JavaScript | 4 | 213 | 94 | 900 |
SVG | 2 | 0 | 0 | 749 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 5.35MB with 4.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/three-column.png | 3.23KB | 0.63KB | ▼ 80.54% |
images/four-column.png | 3.11KB | 0.48KB | ▼ 84.43% |
screenshot-6.png | 176.78KB | 46.50KB | ▼ 73.70% |
images/two-column.png | 3.34KB | 0.80KB | ▼ 75.94% |
screenshot-4.png | 605.32KB | 180.69KB | ▼ 70.15% |