Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.04ms] Passed 4 tests
Analyzing server-side resources used by WPMK Portfolio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.95 ▲0.54 |
Dashboard /wp-admin | 3.44 ▲0.14 | 49.63 ▼0.38 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 53.69 ▼2.21 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 96.77 ▼0.80 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 35.13 ▼0.78 |
Add New Portfolio /wp-admin/post-new.php?post_type=wpmk-portfolio | 3.49 | 54.64 |
WPMK Portfolio /wp-admin/edit.php?post_type=wpmk-portfolio | 3.41 | 40.74 |
Category /wp-admin/edit-tags.php?taxonomy=wpmk-portfolio-category&post_type=wpmk-portfolio | 3.36 | 36.31 |
Portfolio Settings /wp-admin/edit.php?post_type=wpmk-portfolio&page=wpmk-portfolio | 3.36 | 38.34 |
Tags /wp-admin/edit-tags.php?taxonomy=wpmk-portfolio-tag&post_type=wpmk-portfolio | 3.36 | 37.02 |
Server storage [IO: ▲2.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 18 new options
New WordPress options |
---|
wpmk_portfolio_animate_delay |
wpmk_portfolio_animate_status |
wpmk_portfolio_templates |
widget_recent-comments |
wpmk_portfolio_template_css |
widget_theysaidso_widget |
wpmk_portfolio_filter_sort |
db_upgraded |
wpmk_portfolio_enable_filter |
wpmk_portfolio_current_animate_speed |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WPMK Portfolio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 13.62 ▼0.73 | 6.11 ▲4.37 | 45.02 ▼1.79 |
Dashboard /wp-admin | 2,258 ▲67 | 4.91 ▼0.97 | 112.18 ▲7.50 | 43.42 ▼0.51 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 2.03 ▲0.03 | 42.18 ▲1.09 | 34.13 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.21 ▲5.03 | 626.09 ▼13.24 | 50.15 ▼16.25 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.25 ▲0.03 | 103.55 ▲5.05 | 45.27 ▲5.09 |
Add New Portfolio /wp-admin/post-new.php?post_type=wpmk-portfolio | 2,449 | 7.88 | 194.40 | 70.27 |
WPMK Portfolio /wp-admin/edit.php?post_type=wpmk-portfolio | 1,124 | 1.94 | 29.98 | 30.82 |
Category /wp-admin/edit-tags.php?taxonomy=wpmk-portfolio-category&post_type=wpmk-portfolio | 1,308 | 2.15 | 28.73 | 26.92 |
Portfolio Settings /wp-admin/edit.php?post_type=wpmk-portfolio&page=wpmk-portfolio | 1,410 | 2.04 | 23.34 | 33.40 |
Tags /wp-admin/edit-tags.php?taxonomy=wpmk-portfolio-tag&post_type=wpmk-portfolio | 1,283 | 2.15 | 27.54 | 27.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Requires php: Version format is invalid
- Screenshots: These screenshots require images: #1 (3 Column Grid View), #2 (4 Column Grid View), #3 (Admin Screen)
wpmk-portfolio/wpmk-portfolio.php 85% from 13 tests
"WPMK Portfolio" version 1.0.1'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:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 246 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
Everything looks great! No dangerous files found in this plugin973 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 161 | 359 | 765 |
CSS | 5 | 2 | 8 | 196 |
JavaScript | 1 | 2 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 2.09MB with 1.56MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 814.20KB | 180.97KB | ▼ 77.77% |
screenshot-3.png | 455.20KB | 145.88KB | ▼ 67.95% |
screenshot-1.png | 873.83KB | 196.72KB | ▼ 77.49% |