Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5643
File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.
Server metrics [RAM: ▼1.93MB] [CPU: ▼53.81ms] Passed 4 tests
A check of server-side resources used by Sherky Simple Portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.39 ▼49.11 |
Dashboard /wp-admin | 2.07 ▼1.23 | 6.05 ▼41.04 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.69 ▼39.05 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 6.18 ▼86.02 |
Media Library /wp-admin/upload.php | 2.07 ▼1.15 | 5.84 ▼26.12 |
How To Use /wp-admin/admin.php?page=sherkportfolio_menu_page | 2.08 | 6.86 |
Add New Project /wp-admin/admin.php?page=portfolio_add_project | 2.08 | 6.13 |
Portfolio /wp-admin/admin.php?page=portfolio_menu | 2.08 | 5.83 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_sherkportfolioprojects |
wp_sherkportfoliopersonal |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sherky Simple Portfolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.18 ▼1.12 | 1.57 ▼0.32 | 39.71 ▼7.53 |
Dashboard /wp-admin | 2,236 ▲48 | 5.90 ▲0.04 | 115.37 ▼1.41 | 44.57 ▲1.35 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 1.99 ▲0.00 | 39.33 ▼0.99 | 35.30 ▼4.80 |
Add New Post /wp-admin/post-new.php | 1,556 ▲19 | 23.45 ▲0.35 | 668.20 ▼1.36 | 56.66 ▲3.50 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.24 ▲0.02 | 99.41 ▼4.08 | 44.36 ▲1.35 |
How To Use /wp-admin/admin.php?page=sherkportfolio_menu_page | 1,119 | 2.02 | 26.87 | 42.47 |
Add New Project /wp-admin/admin.php?page=portfolio_add_project | 908 | 1.96 | 35.68 | 27.73 |
Portfolio /wp-admin/admin.php?page=portfolio_menu | 934 | 1.83 | 33.46 | 27.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5643
File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_sherkportfolioprojects
- wp_sherkportfoliopersonal
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > User deprecated in wp-includes/functions.php+5643
File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Deprecated in wp-includes/class-wp-hook.php+308
Non-static method SherkPortfolio::enable() should not be called statically
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method MenuPortfolio::setupMenu() should not be called statically
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Warning in wp-content/plugins/sherky-simple-portfolio/classes/Menu.php+12
Use of undefined constant MenuPortfolio - assumed 'MenuPortfolio' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=sherkportfolio_menu_page
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method MenuPortfolio::sherkportfolio_menu_page() should not be called statically
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Deprecated in wp-content/plugins/sherky-simple-portfolio/forms/createportfolio.php+5
Non-static method SherkPortfolio::getBaseDir() should not be called statically
- > GET request to /wp-admin/admin.php?page=portfolio_add_project
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method MenuPortfolio::portfolio_add_project() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Warning in wp-content/plugins/sherky-simple-portfolio/forms/createportfolio.php+5
include(wp-content/plugins/sherky-simple-portfolio/scripts/sherkportfolio.css): failed to open stream: No such file or directory
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Warning in wp-content/plugins/sherky-simple-portfolio/forms/createportfolio.php+5
include(): Failed opening 'wp-content/plugins/sherky-simple-portfolio/scripts/sherkportfolio.css' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=portfolio_add_project
- > Notice in wp-content/plugins/sherky-simple-portfolio/forms/portfolioproject.php+8
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio_add_project
- > Notice in wp-content/plugins/sherky-simple-portfolio/forms/portfolioproject.php+44
Undefined index: id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio_add_project
- > Notice in wp-content/plugins/sherky-simple-portfolio/forms/portfolioproject.php+48
Undefined index: name
- > GET request to /wp-admin/admin.php?page=portfolio_add_project
- > Notice in wp-content/plugins/sherky-simple-portfolio/forms/portfolioproject.php+51
Undefined index: url
- > GET request to /wp-admin/admin.php?page=portfolio_add_project
- > Notice in wp-content/plugins/sherky-simple-portfolio/forms/portfolioproject.php+54
Undefined index: screenshot
- > GET request to /wp-admin/admin.php?page=portfolio_add_project
- > Notice in wp-content/plugins/sherky-simple-portfolio/forms/portfolioproject.php+57
Undefined index: description
- > GET request to /wp-admin/admin.php?page=portfolio_add_project
- > Notice in wp-content/plugins/sherky-simple-portfolio/forms/portfolioproject.php+60
Undefined index: fromdate
- > GET request to /wp-admin/admin.php?page=portfolio_add_project
- > Notice in wp-content/plugins/sherky-simple-portfolio/forms/portfolioproject.php+63
Undefined index: todate
- > GET request to /wp-admin/admin.php?page=portfolio_add_project
- > Deprecated in wp-content/plugins/sherky-simple-portfolio/forms/portfolioproject.php+87
Non-static method HelperFunctionsPortfolio::getAllTableData() should not be called statically
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method MenuPortfolio::create_portfolio() should not be called statically
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Notice in wp-content/plugins/sherky-simple-portfolio/forms/createportfolio.php+8
Undefined index: submit
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Deprecated in wp-content/plugins/sherky-simple-portfolio/forms/createportfolio.php+17
Non-static method HelperFunctionsPortfolio::getTableData() should not be called statically
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Notice in wp-content/plugins/sherky-simple-portfolio/classes/HelperFunctions.php+17
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Notice in wp-content/plugins/sherky-simple-portfolio/forms/createportfolio.php+27
Undefined variable: msg
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Notice in wp-content/plugins/sherky-simple-portfolio/forms/createportfolio.php+67
Trying to access array offset on value of type null
SRP 50% from 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
The following issues need your attention
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/sherky-simple-portfolio/includes/Constants.php on line 7
- > PHP Warning
require_once(ABSPATHwp-admin/upgrade-functions.php): failed to open stream: No such file or directory in wp-content/plugins/sherky-simple-portfolio/database/Install.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/upgrade-functions.php): failed to open stream: No such file or directory in wp-content/plugins/sherky-simple-portfolio/database/Install.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'SherkPortfolio' not found in wp-content/plugins/sherky-simple-portfolio/templates/sherkportfolio_dashboard.php:63
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/sherky-simple-portfolio/includes/Constants.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sherky-simple-portfolio/classes/SherkyPortfolioCssJsScripts.php:16
- > PHP Fatal error
Uncaught Error: Class 'SherkPortfolio' not found in wp-content/plugins/sherky-simple-portfolio/forms/portfolioproject.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sherky-simple-portfolio/classes/SherkyPortfolioShortcode.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sherky-simple-portfolio/database/Install.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sherky-simple-portfolio/database/Install.php on line 3
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio_menu
- > Network (severe)
wp-content/plugins/my-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: portfolio page, portfolios, create portfolios, portfolio, add portfolios...
sherky-simple-portfolio/SherkPortfolio.php 85% from 13 tests
"Sherky Simple Portfolio" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("sherky-simple-portfolio.php" instead of "SherkPortfolio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,573 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 102 | 110 | 664 |
PHP | 11 | 183 | 81 | 543 |
CSS | 4 | 58 | 22 | 366 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 49.81KB | 14.78KB | ▼ 70.33% |