78% portfolio

Code Review | Portfolio by BestWebSoft - Work and Projects Presentation Plugin for WordPress

WordPress plugin Portfolio by BestWebSoft - Work and Projects Presentation Plugin for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: portfolio
  • Plugin version: 2.56
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 13, 2011
  • Latest release: Aug 10, 2023
  • Number of updates: 105
  • Update frequency: every 42.9 days
  • Top authors: bestwebsoft (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

1,000+ active /261,032 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.64ms] Passed 4 tests

Server-side resources used by Portfolio by BestWebSoft - Work and Projects Presentation Plugin for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1546.25 ▲2.73
Dashboard /wp-admin3.45 ▲0.1551.26 ▲0.61
Posts /wp-admin/edit.php3.57 ▲0.2151.72 ▲3.04
Add New Post /wp-admin/post-new.php6.05 ▲0.1690.48 ▼16.93
Media Library /wp-admin/upload.php3.37 ▲0.1442.76 ▲3.56
BWS Panel /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel3.8142.70
Executors /wp-admin/edit-tags.php?taxonomy=portfolio_executor_profile&post_type=bws-portfolio3.5141.23
Add New /wp-admin/post-new.php?post_type=bws-portfolio3.6459.32
Technologies /wp-admin/edit-tags.php?taxonomy=portfolio_technologies&post_type=bws-portfolio3.3745.30
Projects /wp-admin/edit.php?post_type=bws-portfolio3.4244.36

Server storage [IO: ▲6.92MB] [DB: ▲0.08MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 135 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
widget_prtfl_widget
prtfl_options
widget_portfolio_technologies_widget
widget_recent-posts
bstwbsftwppdtplgns_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Portfolio by BestWebSoft - Work and Projects Presentation Plugin for WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲16214.26 ▼0.342.01 ▲0.2443.14 ▼1.68
Dashboard /wp-admin2,316 ▲1365.63 ▼0.0586.52 ▼13.3239.59 ▼2.37
Posts /wp-admin/edit.php2,237 ▲1372.22 ▲0.2834.36 ▼2.7633.74 ▼1.27
Add New Post /wp-admin/post-new.php1,651 ▲12523.16 ▼0.00665.85 ▼23.4762.87 ▲4.08
Media Library /wp-admin/upload.php1,524 ▲1244.21 ▼0.02101.78 ▲3.1947.08 ▲4.06
BWS Panel /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel3,1231.9831.2174.92
Executors /wp-admin/edit-tags.php?taxonomy=portfolio_executor_profile&post_type=bws-portfolio1,3831.9431.3430.95
Add New /wp-admin/post-new.php?post_type=bws-portfolio3,73811.58257.2586.97
Technologies /wp-admin/edit-tags.php?taxonomy=portfolio_technologies&post_type=bws-portfolio1,3831.8829.5930.43
Settings /wp-admin/portfolio.php260.420.1014.77
Projects /wp-admin/edit.php?post_type=bws-portfolio1,2691.9732.0432.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_prtfl_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% 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)
Good news, no errors were detected

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 items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/portfolio/inc/class-prtfl-settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/portfolio/bws_menu/product_list.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/portfolio/templates/portfolio-post.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/portfolio/portfolio.php:450
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio/bws_menu/class-bws-settings.php:1452
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/portfolio/templates/portfolio.php:6

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 user-side errors
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/captcha-bws/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/columns-bws/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/contact-form-plugin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/contact-form-to-db/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/custom-admin-page/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/custom-search-plugin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/donate-button/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-google-2-step-verification/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/error-log-viewer/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/gallery-plugin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/facebook-button-plugin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-google-analytics/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/google-captcha/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-google-maps/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/google-shortlink/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/google-sitemap-plugin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/htaccess/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/job-board/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/limit-attempts/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-linkedin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/multilanguage/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/pagination/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/pdf-print/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-pinterest/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/portfolio/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/post-to-csv/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/profile-extra-fields/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/promobar/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/quotes-and-tips/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/rating-bws/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/realty/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/sender/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/relevant/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/slider-bws/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-smtp/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/social-buttons-pack/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/timesheet/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/subscriber/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/social-login-bws/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/bws-testimonials/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/twitter-plugin/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/updater/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/user-role/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=bws-portfolio&page=prtfl-bws-panel
    • > Network (severe)
    http://ps.w.org/visitors-online/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/portfolio.php
    • > Network (severe)
    wp-admin/portfolio.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Portfolio frontend page (for all portfolios).), #2 (Portfolio single frontend page.), #3 (The pop-up window on Portfolio single page.), #4 (Portfolio Settings page.), #5 (Add technologies page.), #6 (Add executors profile page.), #7 (Add New Portfolio items.), #8 (Portfolio admin page (for all portfolios).)
You can look at the official readme.txt

portfolio/portfolio.php Passed 13 tests

The main file in "Portfolio by BestWebSoft - Work and Projects Presentation Plugin for WordPress" v. 2.56 serves as a complement to information provided in readme.txt and as the entry point to the plugin
104 characters long description:
Create your personal portfolio WordPress website. Manage and showcase past projects to get more clients.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin28,499 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP137241,42711,685
PO File114,2366,2168,890
CSS122943247,106
JavaScript950128668
SVG400150

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity70.67
▷ Minimum class complexity5.00
▷ Maximum class complexity210.00
Average method complexity9.71
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods4287.50%
▷ Protected methods00.00%
▷ Private methods612.50%
Functions102
▷ Named functions102100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
68 PNG files occupy 4.85MB with 2.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png508.05KB183.37KB▼ 63.91%
screenshot-7.png302.71KB101.52KB▼ 66.46%
screenshot-2.png373.06KB125.67KB▼ 66.31%
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%