Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/webphysiology-portfolio/function.php+2706
Function create_function() is deprecated
Server metrics [RAM: ▼1.92MB] [CPU: ▼56.77ms] Passed 4 tests
An overview of server-side resources used by WEBphysiology Portfolio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.45 ▼38.60 |
Dashboard /wp-admin | 2.09 ▼1.22 | 5.35 ▼48.18 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.49 ▼46.34 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 7.64 ▼91.47 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.87 ▼41.09 |
Portfolio Types /wp-admin/edit-tags.php?taxonomy=webphys_portfolio_type&post_type=webphys_portfolio | 2.09 | 5.41 |
Portfolio /wp-admin/edit.php?post_type=webphys_portfolio | 2.09 | 6.63 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=webphys_portfolio_tag&post_type=webphys_portfolio | 2.09 | 5.64 |
Options /wp-admin/edit.php?post_type=webphys_portfolio&page=webphysiology-portfolio | 2.09 | 5.76 |
Add Portfolio /wp-admin/post-new.php?post_type=webphys_portfolio | 2.09 | 6.08 |
Server storage [IO: ▲2.94MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 94 new files
Database: no new tables, 57 new options
New WordPress options |
---|
webphysiology_portfolio_display_tech |
webphysiology_portfolio_debug_mode |
webphysiology_portfolio_gridstyle |
webphysiology_portfolio_overall_width |
webphysiology_portfolio_image_click_behavior |
webphysiology_portfolio_display_clientname |
widget_recent-comments |
webphysiology_portfolio_skip_fancybox_register |
widget_webphys_portfolio_widget |
webphysiology_portfolio_display_desc_first |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WEBphysiology Portfolio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.72 ▲0.16 | 1.85 ▲0.29 | 43.75 ▼0.98 |
Dashboard /wp-admin | 2,221 ▲44 | 5.56 ▼0.05 | 87.68 ▼4.75 | 66.83 ▲24.78 |
Posts /wp-admin/edit.php | 2,208 ▲126 | 2.84 ▲0.81 | 44.06 ▲6.23 | 34.91 ▼3.25 |
Add New Post /wp-admin/post-new.php | 1,558 ▲24 | 23.46 ▲5.15 | 622.32 ▼67.35 | 158.88 ▲86.51 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.22 ▲0.10 | 98.90 ▼15.43 | 75.02 ▲25.01 |
Portfolio Types /wp-admin/edit-tags.php?taxonomy=webphys_portfolio_type&post_type=webphys_portfolio | 1,394 | 2.13 | 27.39 | 33.94 |
Portfolio /wp-admin/edit.php?post_type=webphys_portfolio | 1,263 | 2.85 | 44.60 | 30.11 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=webphys_portfolio_tag&post_type=webphys_portfolio | 1,284 | 2.15 | 25.58 | 30.18 |
Options /wp-admin/edit.php?post_type=webphys_portfolio&page=webphysiology-portfolio | 1,924 | 2.54 | 36.77 | 45.98 |
Add Portfolio /wp-admin/post-new.php?post_type=webphys_portfolio | 2,365 | 7.71 | 184.17 | 122.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/webphysiology-portfolio/function.php+2706
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 57 options
- webphysiology_portfolio_pagepeeker_account
- webphysiology_portfolio_custom_css_url
- webphysiology_portfolio_database_version
- webphysiology_portfolio_delete_data
- db_upgraded
- webphysiology_portfolio_label_width
- webphysiology_portfolio_max_img_height
- webphysiology_portfolio_display_portfolio_title
- theysaidso_admin_options
- webphysiology_portfolio_crop_thumbnail
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webphys_portfolio
- > Deprecated in wp-content/plugins/webphysiology-portfolio/function.php+2706
Function create_function() is deprecated
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webphys_portfolio
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in webphys_portfolio_widget is deprecated since version 4.3.0! Use __construct() instead.
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webphys_portfolio
- > Notice in wp-content/plugins/webphysiology-portfolio/function.php+4182
Undefined variable: file
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=webphys_portfolio&page=webphysiology-portfolio
- > User notice in wp-includes/functions.php+5905
Function wp_deregister_script was called incorrectly. Do not deregister the jquery script in the administration area. To target the front-end theme, use the wp_enqueue_scripts hook. Please see Debugging in WordPress for more information. (This message was added in version 3.6.0.)
- > GET request to /wp-admin/edit.php?post_type=webphys_portfolio&page=webphysiology-portfolio
- > Notice in wp-content/plugins/webphysiology-portfolio/function.php+1092
Undefined variable: check_pp
- > GET request to /wp-admin/edit.php?post_type=webphys_portfolio&page=webphysiology-portfolio
- > Notice in wp-content/plugins/webphysiology-portfolio/function.php+1092
Undefined variable: check_stw
- > GET request to /wp-admin/post-new.php?post_type=webphys_portfolio
- > Notice in wp-content/plugins/webphysiology-portfolio/function.php+266
Undefined variable: post_ID
SRP 0% 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 fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/webphysiology-portfolio/chmod_image_cache.php
- > /wp-content/plugins/webphysiology-portfolio/clear_image_caches.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_webphys_port_options() in wp-content/plugins/webphysiology-portfolio/loop-portfolio.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/webphysiology-portfolio/single-webphys_portfolio.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/webphysiology-portfolio/function.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/webphysiology-portfolio/function.php:76
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=webphys_portfolio&page=webphysiology-portfolio
- > Javascript (severe) in unknown
/wp-content/plugins/webphysiology-portfolio/scripts/fancybox/jquery.fancybox-1.3.4.pack.js?ver=6.3.1 17:218 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
- > GET request to /wp-admin/edit.php?post_type=webphys_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: jQuery(...).fancybox is not a function" "TypeError: jQuery(...).fancybox is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit.php?post_type=webphys_portfolio:308:27)\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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=webphys_portfolio&page=webphysiology-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: jQuery(...).fancybox is not a function
- > GET request to /wp-admin/edit.php?post_type=webphys_portfolio&page=webphysiology-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: jQuery(...).fancybox is not a function" "TypeError: jQuery(...).fancybox is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit.php?post_type=webphys_portfolio&page=webphysiology-portfolio:463:27)\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
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 your attention:
- Screenshots: These screenshots require images: #1 (Portfolio Page Frontend User Interface), #2 (Portfolio Post edit screen), #3 (Portfolio Page edit screen showing [shortcode] implementation), #4 (Portfolio options screen), #5 (Portfolio Tag Cloud widget)
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
webphysiology-portfolio/portfolio-main.php 85% from 13 tests
"WEBphysiology Portfolio" version 1.4.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("webphysiology-portfolio.php" instead of "portfolio-main.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin6,181 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 1,079 | 912 | 3,911 |
JavaScript | 9 | 368 | 235 | 1,197 |
CSS | 9 | 96 | 75 | 866 |
HTML | 5 | 23 | 43 | 207 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 2 | 66.67% |
▷ Concrete classes | 1 | 33.33% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 6 | 60.00% |
▷ Public methods | 7 | 70.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 30.00% |
Functions | 94 | |
▷ Named functions | 94 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.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
50 PNG files occupy 2.54MB with 1.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 233.83KB | 50.08KB | ▼ 78.58% |
images/nav_button_right_selected.png | 0.15KB | 0.10KB | ▼ 30.97% |
screenshot-4.png | 1,263.43KB | 358.09KB | ▼ 71.66% |
scripts/fancybox/fancy_shadow_se.png | 0.34KB | 0.48KB | 0.00% |
images/mail-square-webtreatsetc-16x16.png | 0.74KB | 0.59KB | ▼ 20.61% |