Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.96ms] Passed 4 tests
An overview of server-side resources used by WPMK Block
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.72 ▼0.79 |
Dashboard /wp-admin | 3.37 ▲0.02 | 47.46 ▼8.25 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.37 ▲3.14 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 84.60 ▼11.24 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.11 ▼3.56 |
WPMK Block /wp-admin/edit.php?post_type=wpmk-block | 3.34 | 34.38 |
Add New Block /wp-admin/post-new.php?post_type=wpmk-block | 3.41 | 42.55 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_wpmk_block_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
WPMK Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 14.10 ▼0.25 | 1.65 ▲0.08 | 40.84 ▼2.06 |
Dashboard /wp-admin | 2,221 ▲54 | 5.52 ▼0.01 | 82.46 ▼12.36 | 40.66 ▼6.64 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.99 ▼0.03 | 34.00 ▼4.23 | 35.42 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.15 ▲0.21 | 676.39 ▲3.79 | 50.02 ▼0.97 |
Media Library /wp-admin/upload.php | 1,430 ▲27 | 4.21 ▲0.01 | 95.91 ▼14.40 | 45.46 ▲0.48 |
WPMK Block /wp-admin/edit.php?post_type=wpmk-block | 1,094 | 1.95 | 31.27 | 31.54 |
Add New Block /wp-admin/post-new.php?post_type=wpmk-block | 2,184 | 7.57 | 184.88 | 71.25 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_wpmk_block_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please take a closer look at the following
- 5× 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/wpmk-block/classes/wpmk-block-tinymce-class.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpmk-block/classes/wpmk-block-class.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpmk-block/widgets/wpmk-widget.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wpmk-block/wpmk-block.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpmk-block/classes/wpmk-block-vc-shortcodes-class.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (WordPress Tinymce Editor), #2 (Visual Composer Editor), #3 (Widget)
- Requires php: Invalid version format
wpmk-block/wpmk-block.php 85% from 13 tests
The main file in "WPMK Block" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 199 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin254 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 75 | 102 | 234 |
JavaScript | 1 | 3 | 0 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.94MB with 0.55MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 86.97KB | 40.04KB | ▼ 53.97% |
screenshot-1.png | 127.40KB | 53.70KB | ▼ 57.85% |
screenshot-2.png | 750.80KB | 273.28KB | ▼ 63.60% |