Benchmarks
Plugin footprint 64% 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 gracefully, with no errors
Server metrics [RAM: ▲5.18MB] [CPU: ▲4.00ms] 75% from 4 tests
A check of server-side resources used by Portfolio Gallery - Responsive Image Gallery
The following require your attention
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.18MB on /wp-admin/admin.php?page=Total_Soft_Portfolio_General)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.17 ▲5.71 | 54.64 ▲15.46 |
Dashboard /wp-admin | 9.19 ▲5.85 | 54.49 ▼2.94 |
Posts /wp-admin/edit.php | 9.19 ▲5.84 | 56.32 ▲8.77 |
Add New Post /wp-admin/post-new.php | 9.19 ▲3.31 | 90.64 ▼5.30 |
Media Library /wp-admin/upload.php | 9.19 ▲5.97 | 55.67 ▲20.81 |
Support /wp-admin/admin.php?page= | 9.19 | 41.22 |
Total Products /wp-admin/admin.php?page=Total_Soft_Products | 9.19 | 38.00 |
Portfolio Manager /wp-admin/admin.php?page=Total_Soft_Portfolio | 9.19 | 121.86 |
General Options /wp-admin/admin.php?page=Total_Soft_Portfolio_General | 9.24 | 225.99 |
Server storage [IO: ▲8.61MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 131 new files
Database: 10 new tables, 7 new options
New tables |
---|
wp_totalsoft_new_plugin |
wp_totalsoft_portfolio_dbt |
wp_totalsoft_portfolio_albums |
wp_totalsoft_portfolio_id |
wp_totalsoft_portfolio_manager |
wp_totalsoft_portfolio_images |
wp_totalsoft_portfolio_dbt_4 |
wp_totalsoft_portfolio_dbt_1 |
wp_totalsoft_portfolio_dbt_2 |
wp_totalsoft_portfolio_dbt_3 |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_total_soft_portfolio |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics 75% from 4 tests
A check of browser resources used by Portfolio Gallery - Responsive Image Gallery
It is time to focus on the following
- Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 119,212 on /wp-admin/admin.php?page=Total_Soft_Portfolio_General)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲202 | 13.62 ▼1.04 | 9.59 ▲7.37 | 42.36 ▼4.09 |
Dashboard /wp-admin | 2,279 ▲99 | 5.82 ▲0.17 | 85.41 ▲1.44 | 78.54 ▲34.57 |
Posts /wp-admin/edit.php | 2,183 ▲83 | 2.30 ▲0.36 | 33.57 ▼3.29 | 33.60 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,755 ▲229 | 23.09 ▼0.12 | 671.10 ▼4.09 | 37.60 ▼17.17 |
Media Library /wp-admin/upload.php | 1,478 ▲78 | 4.50 ▲0.33 | 109.66 ▲10.26 | 89.89 ▲45.73 |
Support /wp-admin/admin.php?page= | 1,019 | 2.00 | 25.74 | 27.96 |
Total Products /wp-admin/admin.php?page=Total_Soft_Products | 1,017 | 2.01 | 25.88 | 23.81 |
Portfolio Manager /wp-admin/admin.php?page=Total_Soft_Portfolio | 2,286 | 4.38 | 65.91 | 161.45 |
General Options /wp-admin/admin.php?page=Total_Soft_Portfolio_General | 119,212 | 2.01 | 80.28 | 73.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables detected upon uninstall: 10 tables
- wp_totalsoft_portfolio_dbt_1
- wp_totalsoft_portfolio_dbt_3
- wp_totalsoft_portfolio_images
- wp_totalsoft_new_plugin
- wp_totalsoft_portfolio_dbt
- wp_totalsoft_portfolio_dbt_4
- wp_totalsoft_portfolio_albums
- wp_totalsoft_portfolio_manager
- wp_totalsoft_portfolio_id
- wp_totalsoft_portfolio_dbt_2
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_total_soft_portfolio
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=Total_Soft_Portfolio
- > Notice in wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Portfolio-New.php+99
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=Total_Soft_Portfolio
- > Notice in wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Portfolio-New.php+99
Trying to get property 'Portfolio_ID' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Portfolio-Install.php on line 4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Portfolio-Media.php on line 3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Portfolio-Install.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Portfolio-Widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Portfolio-New.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Portfolio-Settings.php:2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Portfolio-Install.php on line 10
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Portfolio-Install.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Products.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Pricing.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #6, #7, #8, #9 in gallery-portfolio/assets to your readme.txt
- Screenshots: Please add images for these screenshots: #14 (An example of plugin in action (Slider)), #15 (An example of plugin in action (Slider)), #16 (An example of plugin in action (Album Animation)), #17 (An example of plugin in action (Album Animation))
gallery-portfolio/index.php 85% from 13 tests
Analyzing the main PHP file in "Portfolio Gallery - Responsive Image Gallery" version 1.4.8
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gallery-portfolio.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 244 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected38,564 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 0 | 466 | 26,840 |
CSS | 16 | 40 | 174 | 9,236 |
JavaScript | 50 | 0 | 58 | 1,553 |
SVG | 4 | 0 | 0 | 935 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 486)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 487.00 |
▷ Minimum class complexity | 487.00 |
▷ Maximum class complexity | 487.00 |
Average method complexity | 163.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 486.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 3.93MB with 2.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Images/Products/Gallery_video.png | 135.83KB | 50.52KB | ▼ 62.80% |
Images/Products/Event_Calendar.png | 31.90KB | 31.51KB | ▼ 1.22% |
Images/Sprite/urban-sprite.png | 684.26KB | 281.66KB | ▼ 58.84% |
Images/Products/Portfolio.png | 383.06KB | 68.48KB | ▼ 82.12% |
Images/Products/Pricing_Table.png | 404.40KB | 41.69KB | ▼ 89.69% |