Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/portfolio-and-testimonial-manager/custom-post-type.php+13
Constant SCRIPT_DEBUG already defined
Server metrics [RAM: ▼2.42MB] [CPU: ▼336.71ms] Passed 4 tests
This is a short check of server-side resources used by Portfolio and Testimonial manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.95 ▼1.57 | 5.34 ▼48.59 |
Dashboard /wp-admin | 1.97 ▼1.44 | 5.07 ▼28.36 |
Posts /wp-admin/edit.php | 1.97 ▼1.67 | 5.29 ▼30.64 |
Add New Post /wp-admin/post-new.php | 1.97 ▼5.00 | 5.42 ▼1,239.23 |
Media Library /wp-admin/upload.php | 1.97 ▼1.33 | 4.93 ▼20.09 |
Settings /wp-admin/edit.php?post_type=portfolio&page=portfolio-settings | 1.97 | 5.14 |
Settings /wp-admin/admin.php?page=portfolio-settings&page=portfolio-settings | 1.97 | 5.98 |
Portfolios & Testimonials /wp-admin/edit.php?post_type=portfolio | 1.97 | 5.28 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio | 1.97 | 5.80 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: 3 new tables, no new options
New tables |
---|
wp_portfolio_to_category |
wp_portfolio_images |
wp_portfolio_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Portfolio and Testimonial manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,032 ▲278 | 17.01 ▲1.22 | 12.33 ▲5.93 | 16.94 ▲14.32 |
Dashboard /wp-admin | 2,946 ▲85 | 6.14 ▼0.09 | 124.17 ▼8.67 | 181.32 ▲19.85 |
Posts /wp-admin/edit.php | 2,716 ▲25 | 3.23 ▼0.12 | 67.15 ▲2.40 | 141.66 ▲1.31 |
Add New Post /wp-admin/post-new.php | 1,657 ▼101 | 18.04 ▼3.52 | 345.61 ▼106.12 | 174.60 ▲15.44 |
Media Library /wp-admin/upload.php | 1,751 ▲53 | 5.58 ▲0.06 | 124.46 ▼16.64 | 205.76 ▲23.32 |
Settings /wp-admin/edit.php?post_type=portfolio&page=portfolio-settings | 1,153 | 2.74 | 56.22 | 102.77 |
Settings /wp-admin/admin.php?page=portfolio-settings&page=portfolio-settings | 1,152 | 2.81 | 61.88 | 93.78 |
Portfolios & Testimonials /wp-admin/edit.php?post_type=portfolio | 1,392 | 3.21 | 63.10 | 117.83 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio | 1,687 | 3.17 | 57.10 | 133.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/portfolio-and-testimonial-manager/custom-post-type.php+13
Constant SCRIPT_DEBUG already defined
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio
- > Notice in wp-content/plugins/portfolio-and-testimonial-manager/custom-post-type.php+13
Constant SCRIPT_DEBUG already defined
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio
- > Notice in wp-content/plugins/portfolio-and-testimonial-manager/portfolio.php+97
Undefined variable: labels
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio-settings&page=portfolio-settings
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio-settings&page=portfolio-settings
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio-settings&page=portfolio-settings
- > Notice in wp-content/plugins/portfolio-and-testimonial-manager/portfolio-settings.php+52
Undefined index: submit
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio-settings&page=portfolio-settings
- > Warning in wp-content/plugins/portfolio-and-testimonial-manager/portfolio-settings.php+93
Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio-settings&page=portfolio-settings
- > Notice in wp-content/plugins/portfolio-and-testimonial-manager/portfolio-settings.php+93
Undefined index: id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portfolio-settings&page=portfolio-settings
- > Notice in wp-content/plugins/portfolio-and-testimonial-manager/portfolio-settings.php+94
Undefined variable: FeeMsg
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio
- > Notice in wp-content/plugins/portfolio-and-testimonial-manager/portfolio.php+283
Undefined index: page
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-and-testimonial-manager/custom-post-type.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/portfolio-and-testimonial-manager/portfolio.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== portfolio-and-testimonial-manager ===
)
portfolio-and-testimonial-manager/portfolio.php 92% from 13 tests
The main PHP script in "Portfolio and Testimonial manager" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("portfolio-and-testimonial-manager.php" instead of "portfolio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,890 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 173 | 76 | 886 |
JavaScript | 4 | 271 | 310 | 841 |
CSS | 3 | 31 | 4 | 163 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/back.png | 0.14KB | 0.10KB | ▼ 27.59% |
img/wleft.png | 1.02KB | 0.79KB | ▼ 23.04% |
img/icon-open.png | 0.84KB | 0.70KB | ▼ 16.08% |
img/bright.png | 1.11KB | 0.88KB | ▼ 21.04% |
img/bleft.png | 1.11KB | 0.87KB | ▼ 21.41% |