Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.93ms] Passed 4 tests
Analyzing server-side resources used by MB Portfolio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 49.77 ▲6.41 |
Dashboard /wp-admin | 3.40 ▲0.09 | 51.25 ▼1.47 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 52.69 ▲2.16 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 89.09 ▼11.88 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.34 ▼0.54 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=mb-portfolio-category&post_type=mb-portfolio | 3.32 | 35.34 |
Add New /wp-admin/post-new.php?post_type=mb-portfolio | 3.45 | 58.36 |
All Items /wp-admin/edit.php?post_type=mb-portfolio | 3.37 | 39.35 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
MB Portfolio: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,009 ▲263 | 13.77 ▼0.85 | 12.38 ▲10.38 | 54.68 ▲10.10 |
Dashboard /wp-admin | 2,237 ▲49 | 5.87 ▼0.04 | 105.95 ▼4.89 | 40.54 ▼3.21 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 1.99 ▼0.03 | 38.75 ▲0.91 | 35.33 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,559 ▲40 | 23.20 ▲0.12 | 678.39 ▲8.91 | 58.71 ▲5.85 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.20 ▼0.00 | 104.65 ▼8.56 | 43.65 ▼6.09 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=mb-portfolio-category&post_type=mb-portfolio | 1,300 | 2.14 | 26.78 | 27.57 |
Add New /wp-admin/post-new.php?post_type=mb-portfolio | 2,425 | 7.63 | 173.34 | 66.72 |
All Items /wp-admin/edit.php?post_type=mb-portfolio | 1,109 | 1.98 | 31.17 | 31.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mb-portfolio/inc/cpt.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mb-portfolio/inc/taxonomy.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mb-portfolio/mb-portfolio.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mb-portfolio/inc/meta_field.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mb-portfolio/inc/shortcode.php:3
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Custom post type for Portfolio.), #2 (screenshot for adding custom link i.e. project website link.), #3 (screenshot to add fa icon for portfolio category.), #4 (screenshot for placing shortcode in the page or post.), #5 (screenshot of final look front-end.)
mb-portfolio/mb-portfolio.php Passed 13 tests
"MB Portfolio" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
120 characters long description:
The stylish portfolio for WordPress. Shortcode [mb_portfolio navigation="true" posts="6" term_id="" pagination="false"].
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin678 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 74 | 34 | 327 |
CSS | 4 | 5 | 12 | 306 |
JavaScript | 3 | 14 | 47 | 45 |
PHP code Passed 2 tests
This is a short overview 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.21 |
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 | 10 | |
▷ Named functions | 10 | 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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prev.png | 1.33KB | 1.59KB | 0.00% |
images/next.png | 1.32KB | 1.58KB | 0.00% |
images/close.png | 0.27KB | 0.29KB | 0.00% |