71% bootstrap-multi-language-responsive-portfolio

Code Review | Bootstrap Multi-language Responsive Portfolio

WordPress plugin Bootstrap Multi-language Responsive Portfolio scored71%from 54 tests.

About plugin

  • Plugin page: bootstrap-multi-l...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.4.2
  • WordPress version: 6.3.1
  • First release: Mar 5, 2015
  • Latest release: Jul 3, 2020
  • Number of updates: 10
  • Update frequency: every 194.8 days
  • Top authors: augustinfotech (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /8,235 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2851.79 ▲9.53
Dashboard /wp-admin3.57 ▲0.2361.66 ▼3.71
Posts /wp-admin/edit.php3.67 ▲0.3259.35 ▲6.28
Add New Post /wp-admin/post-new.php6.18 ▲0.2996.21 ▼5.23
Media Library /wp-admin/upload.php3.49 ▲0.2648.64 ▲14.77
Portfolio Settings /wp-admin/edit.php?post_type=portfolio&page=portfolio-settings3.4743.43
Add New Item /wp-admin/post-new.php?post_type=portfolio3.6460.50
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio3.4943.69
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-types&post_type=portfolio3.4943.22
Portfolio /wp-admin/edit.php?post_type=portfolio3.5345.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲22214.03 ▼0.2013.29 ▲11.7052.49 ▲12.41
Dashboard /wp-admin2,270 ▲705.84 ▲0.9898.80 ▼4.7440.57 ▼5.55
Posts /wp-admin/edit.php2,146 ▲432.04 ▲0.0337.03 ▼1.8239.25 ▲2.10
Add New Post /wp-admin/post-new.php1,565 ▲2523.10 ▼0.10653.67 ▼21.1665.47 ▲9.73
Media Library /wp-admin/upload.php1,446 ▲464.28 ▲0.10115.68 ▲7.6548.75 ▲3.41
Portfolio Settings /wp-admin/edit.php?post_type=portfolio&page=portfolio-settings1,0652.0628.9650.82
Add New Item /wp-admin/post-new.php?post_type=portfolio2,6477.93172.3976.46
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio1,2892.2032.1632.81
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-types&post_type=portfolio1,3172.2031.1430.68
Portfolio /wp-admin/edit.php?post_type=portfolio1,1661.9633.5532.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

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


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.)
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.28
Average class complexity31.00
▷ Minimum class complexity8.00
▷ Maximum class complexity54.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/three-column.png3.23KB0.63KB▼ 80.54%
images/four-column.png3.11KB0.48KB▼ 84.43%
screenshot-6.png176.78KB46.50KB▼ 73.70%
images/two-column.png3.34KB0.80KB▼ 75.94%
screenshot-4.png605.32KB180.69KB▼ 70.15%