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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.42 ▲0.96 | 44.62 ▲1.57 |
Dashboard /wp-admin | 4.27 ▲0.96 | 56.29 ▲7.08 |
Posts /wp-admin/edit.php | 4.32 ▲0.97 | 58.92 ▲10.15 |
Add New Post /wp-admin/post-new.php | 6.83 ▲0.95 | 92.54 ▼3.89 |
Media Library /wp-admin/upload.php | 4.17 ▲0.94 | 51.24 ▲17.68 |
All Portfolios /wp-admin/edit.php?post_type=sol_portfolio | 4.24 | 48.23 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio-tag&post_type=sol_portfolio | 4.19 | 43.72 |
Portfolio Designer Lite Settings /wp-admin/admin.php?page=portfolio_lite_settings | 4.18 | 42.06 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=sol_portfolio | 4.19 | 42.50 |
Add New /wp-admin/post-new.php?post_type=sol_portfolio | 4.40 | 56.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,426 ▲664 | 15.48 ▲1.24 | 20.07 ▲18.28 | 40.10 ▼3.29 |
Dashboard /wp-admin | 2,505 ▲328 | 6.16 ▲0.64 | 119.98 ▲15.32 | 94.77 ▲52.34 |
Posts /wp-admin/edit.php | 2,433 ▲333 | 3.35 ▲1.34 | 54.98 ▲12.91 | 63.42 ▲24.64 |
Add New Post /wp-admin/post-new.php | 1,841 ▲315 | 22.11 ▼0.97 | 659.52 ▼44.54 | 31.71 ▼26.92 |
Media Library /wp-admin/upload.php | 1,573 ▲170 | 4.21 ▼0.01 | 94.81 ▼7.81 | 84.48 ▲39.68 |
All Portfolios /wp-admin/edit.php?post_type=sol_portfolio | 1,456 | 3.28 | 49.15 | 74.61 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio-tag&post_type=sol_portfolio | 1,576 | 3.13 | 42.08 | 74.29 |
Portfolio Designer Lite Settings /wp-admin/admin.php?page=portfolio_lite_settings | 1,186 | 5.32 | 95.11 | 65.96 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=sol_portfolio | 1,604 | 3.09 | 47.76 | 66.02 |
Add New /wp-admin/post-new.php?post_type=sol_portfolio | 2,877 | 7.84 | 193.89 | 134.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 12 | 6,032 |
PHP | 7 | 776 | 1,051 | 5,690 |
CSS | 10 | 567 | 285 | 5,259 |
JavaScript | 7 | 230 | 85 | 2,792 |
XML | 1 | 0 | 16 | 1,083 |
LESS | 1 | 15 | 0 | 122 |
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 code | 0.52 |
Average class complexity | 134.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 370.00 |
Average method complexity | 5.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 143.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 211 | |
▷ Static methods | 5 | 2.37% |
▷ Public methods | 75 | 35.55% |
▷ Protected methods | 136 | 64.45% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 2 | |
▷ Global constants | 2 | 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
13 PNG files occupy 0.50MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/right-arrow.png | 0.45KB | 0.47KB | 0.00% |
images/fancybox_overlay.png | 0.98KB | 0.09KB | ▼ 90.43% |
images/portfolio_advertisement_popup.png | 158.17KB | 88.18KB | ▼ 44.25% |
images/left-arrow.png | 0.46KB | 0.49KB | 0.00% |
images/logo.png | 3.68KB | 2.09KB | ▼ 43.16% |