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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.06ms] Passed 4 tests
An overview of server-side resources used by MK Portfolio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.53 ▲0.02 |
Dashboard /wp-admin | 3.34 ▲0.03 | 52.01 ▲4.01 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.39 ▲1.55 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.59 ▼5.82 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.42 ▲5.37 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3.42 | 55.78 |
CategoryOfWork /wp-admin/edit-tags.php?taxonomy=categoryofwork&post_type=portfolio | 3.25 | 33.82 |
All Portfolios /wp-admin/edit.php?post_type=portfolio | 3.30 | 38.58 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for MK Portfolio
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.22 ▼1.16 | 1.63 ▼0.14 | 39.36 ▼9.80 |
Dashboard /wp-admin | 2,234 ▲51 | 5.79 ▲0.88 | 94.16 ▼15.33 | 39.16 ▼1.48 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.01 ▲0.01 | 34.17 ▼3.91 | 34.41 ▲3.42 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 23.12 ▼0.33 | 657.05 ▼42.04 | 61.79 ▼1.41 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.13 ▼0.09 | 111.84 ▲4.41 | 48.69 ▲2.69 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,598 | 7.85 | 168.91 | 66.55 |
CategoryOfWork /wp-admin/edit-tags.php?taxonomy=categoryofwork&post_type=portfolio | 1,296 | 2.13 | 25.36 | 26.96 |
All Portfolios /wp-admin/edit.php?post_type=portfolio | 1,143 | 1.94 | 29.79 | 32.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/mk-wordpress-portfolio/index.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
mk-wordpress-portfolio/index.php 92% from 13 tests
"MK Portfolio" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mk-wordpress-portfolio.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,382 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 531 | 842 | 2,169 |
PHP | 2 | 24 | 13 | 134 |
CSS | 1 | 14 | 2 | 79 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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 | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected