89% portfolio-designer-lite

Code Review | Portfolio Designer – WordPress Portfolio Plugin (Image/Video/Slider Gallery)

WordPress plugin Portfolio Designer – WordPress Portfolio Plugin (Image/Video/Slider Gallery) scored89%from 54 tests.

About plugin

  • Plugin page: portfolio-designe...
  • Plugin version: 1.1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2017
  • Latest release: Nov 24, 2023
  • Number of updates: 21
  • Update frequency: every 107.4 days
  • Top authors: solwininfotech (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

300+ active /16,409 total downloads

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.95MB] [CPU: ▲3.73ms] Passed 4 tests

An overview of server-side resources used by Portfolio Designer – WordPress Portfolio Plugin (Image/Video/Slider Gallery)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.42 ▲0.9644.62 ▲1.57
Dashboard /wp-admin4.27 ▲0.9656.29 ▲7.08
Posts /wp-admin/edit.php4.32 ▲0.9758.92 ▲10.15
Add New Post /wp-admin/post-new.php6.83 ▲0.9592.54 ▼3.89
Media Library /wp-admin/upload.php4.17 ▲0.9451.24 ▲17.68
All Portfolios /wp-admin/edit.php?post_type=sol_portfolio4.2448.23
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio-tag&post_type=sol_portfolio4.1943.72
Portfolio Designer Lite Settings /wp-admin/admin.php?page=portfolio_lite_settings4.1842.06
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=sol_portfolio4.1942.50
Add New /wp-admin/post-new.php?post_type=sol_portfolio4.4056.94

Server storage [IO: ▲4.61MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
portfolio_designer_lite_settings
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Portfolio Designer – WordPress Portfolio Plugin (Image/Video/Slider Gallery)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,426 ▲66415.48 ▲1.2420.07 ▲18.2840.10 ▼3.29
Dashboard /wp-admin2,505 ▲3286.16 ▲0.64119.98 ▲15.3294.77 ▲52.34
Posts /wp-admin/edit.php2,433 ▲3333.35 ▲1.3454.98 ▲12.9163.42 ▲24.64
Add New Post /wp-admin/post-new.php1,841 ▲31522.11 ▼0.97659.52 ▼44.5431.71 ▼26.92
Media Library /wp-admin/upload.php1,573 ▲1704.21 ▼0.0194.81 ▼7.8184.48 ▲39.68
All Portfolios /wp-admin/edit.php?post_type=sol_portfolio1,4563.2849.1574.61
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio-tag&post_type=sol_portfolio1,5763.1342.0874.29
Portfolio Designer Lite Settings /wp-admin/admin.php?page=portfolio_lite_settings1,1865.3295.1165.96
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=sol_portfolio1,6043.0947.7666.02
Add New /wp-admin/post-new.php?post_type=sol_portfolio2,8777.84193.89134.98

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • portfolio_designer_lite_settings
    • pdl_is_optin
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: responsive portfolio layout, portfolio designer, portfolio gallery, portfolio slider, portfolio...

portfolio-designer-lite/portfolio-designer-lite.php Passed 13 tests

The primary PHP file in "Portfolio Designer – WordPress Portfolio Plugin (Image/Video/Slider Gallery)" version 1.1.7 is used by WordPress to initiate all plugin functionality
87 characters long description:
It allows you to create, manage and design your portfolio and showcase with few clicks.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin20,978 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
SVG40126,032
PHP77761,0515,690
CSS105672855,259
JavaScript7230852,792
XML10161,083
LESS1150122

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 143)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity134.57
▷ Minimum class complexity1.00
▷ Maximum class complexity370.00
Average method complexity5.45
▷ Minimum method complexity1.00
▷ Maximum method complexity143.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods211
▷ Static methods52.37%
▷ Public methods7535.55%
▷ Protected methods13664.45%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants2
▷ Global constants2100.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
13 PNG files occupy 0.50MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/right-arrow.png0.45KB0.47KB0.00%
images/fancybox_overlay.png0.98KB0.09KB▼ 90.43%
images/portfolio_advertisement_popup.png158.17KB88.18KB▼ 44.25%
images/left-arrow.png0.46KB0.49KB0.00%
images/logo.png3.68KB2.09KB▼ 43.16%