Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▲2.49ms] Passed 4 tests
Analyzing server-side resources used by Mighty Portfolio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 47.05 ▲4.94 |
Dashboard /wp-admin | 3.56 ▲0.25 | 53.40 ▲5.98 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 62.82 ▲17.93 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 84.59 ▼6.19 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 38.33 ▲5.23 |
All Portfolios /wp-admin/edit.php?post_type=mp-portfolio | 3.43 | 41.93 |
Category /wp-admin/edit-tags.php?taxonomy=cat_portfolio&post_type=mp-portfolio | 3.39 | 40.13 |
Add New /wp-admin/post-new.php?post_type=mp-portfolio | 3.52 | 51.03 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 77 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Mighty Portfolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,229 ▲494 | 17.53 ▲3.16 | 8.68 ▲6.88 | 39.00 ▼9.09 |
Dashboard /wp-admin | 2,530 ▲342 | 7.87 ▲2.97 | 151.63 ▲35.57 | 58.96 ▲9.36 |
Posts /wp-admin/edit.php | 2,443 ▲354 | 5.25 ▲3.20 | 69.49 ▲32.32 | 48.78 ▲13.29 |
Add New Post /wp-admin/post-new.php | 1,682 ▲148 | 24.73 ▲1.61 | 652.87 ▼18.80 | 49.59 ▼5.09 |
Media Library /wp-admin/upload.php | 1,582 ▲191 | 5.46 ▲1.28 | 94.91 ▼8.67 | 57.38 ▲14.50 |
All Portfolios /wp-admin/edit.php?post_type=mp-portfolio | 1,429 | 5.24 | 64.19 | 37.57 |
Category /wp-admin/edit-tags.php?taxonomy=cat_portfolio&post_type=mp-portfolio | 1,622 | 5.11 | 58.92 | 46.71 |
Add New /wp-admin/post-new.php?post_type=mp-portfolio | 3,067 | 11.55 | 239.24 | 145.30 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 19× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/checkbox_button.php
- > /wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/radio.php
- > /wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/text_align.php
- > /wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/dimension.php
- > /wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/text.php
- > /wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/email.php
- > /wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/textarea.php
- > /wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/password.php
- > /wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/url.php
- > /wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/number.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/image.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/text_multi.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mighty-portfolio/inc/metabox-config.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/icon.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/google_font.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mighty-portfolio/mighty-portfolio.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/image_multi.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mighty-portfolio/inc/shortcodes.php:90
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/editor.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/mighty-portfolio/framework/core/fields/fields_views/color_rgba.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=mp-portfolio
- > Network (severe)
wp-includes/js/tinymce/plugins/wpembed/plugin.min.js?wp-mce-49110-20201110 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: showcase, project, portfolio, work
mighty-portfolio/mighty-portfolio.php Passed 13 tests
The entry point to "Mighty Portfolio" version 1.0.3 is a PHP file that has certain tags in its header comment area
53 characters long description:
Canto Clients simple and effective clients shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,072 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 1,469 | 1,775 | 6,508 |
CSS | 11 | 152 | 158 | 5,728 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 40 | 357 | 217 | 2,138 |
Markdown | 3 | 9 | 0 | 27 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 9.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 10 | 18.52% |
▷ Public methods | 49 | 90.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.26% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
framework/assets/images/transparency-grid.png | 5.24KB | 4.19KB | ▼ 20.16% |