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
Install script ran successfully
Server metrics [RAM: ▲2.77MB] [CPU: ▲6.80ms] Passed 4 tests
This is a short check of server-side resources used by Material Design for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.26 ▲2.80 | 51.73 ▲11.80 |
Dashboard /wp-admin | 6.03 ▲2.69 | 61.96 ▲2.84 |
Posts /wp-admin/edit.php | 6.15 ▲2.79 | 57.01 ▲10.01 |
Add New Post /wp-admin/post-new.php | 9.04 ▲3.15 | 98.70 ▲2.56 |
Media Library /wp-admin/upload.php | 6.03 ▲2.80 | 47.22 ▲13.00 |
Settings /wp-admin/admin.php?page=material-settings-page | 6.07 | 46.49 |
Getting Started /wp-admin/admin.php?page=material-settings | 6.02 | 43.69 |
Onboarding Wizard /wp-admin/admin.php?page=material-onboarding-wizard | 6.01 | 39.57 |
Server storage [IO: ▲7.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 187 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
material_m2_to_m3_migration |
material_design |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Material Design for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲120 | 18.47 ▲4.07 | 6.93 ▲5.17 | 73.07 ▲32.10 |
Dashboard /wp-admin | 2,277 ▲100 | 5.53 ▼0.14 | 83.84 ▼4.20 | 46.21 ▲6.42 |
Posts /wp-admin/edit.php | 2,188 ▲88 | 2.28 ▲0.31 | 35.34 ▼0.42 | 36.90 ▲2.62 |
Add New Post /wp-admin/post-new.php | 8,362 ▲6,825 | 29.21 ▲11.02 | 949.87 ▲308.86 | 46.06 ▼8.81 |
Media Library /wp-admin/upload.php | 1,484 ▲87 | 4.33 ▲0.15 | 100.64 ▼2.90 | 47.79 ▲2.58 |
Settings /wp-admin/admin.php?page=material-settings-page | 1,083 | 6.77 | 152.58 | 44.93 |
Getting Started /wp-admin/admin.php?page=material-settings | 986 | 3.27 | 51.19 | 33.70 |
Onboarding Wizard /wp-admin/admin.php?page=material-onboarding-wizard | 858 | 3.22 | 49.66 | 20.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- material_m2_to_m3_migration
- can_compress_scripts
- material_design
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 90× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/material-design/php/block-patterns/call-to-action-benefits.php:27
- > PHP Fatal error
Uncaught Error: Class 'MaterialDesign\\Plugin\\Plugin_Base' not found in wp-content/plugins/material-design/php/class-plugin.php:40
- > PHP Fatal error
Uncaught Error: Class 'MaterialDesign\\Plugin\\Rest\\API_Base' not found in wp-content/plugins/material-design/php/rest/class-onboarding-rest-controller.php:33
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/material-design/php/template-parts/blocks/query-pagination.php on line 23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/material-design/php/template-parts/blocks/query-pagination-next.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_block_wrapper_attributes() in wp-content/plugins/material-design/php/template-parts/blocks/query-pagination.php:24
- > PHP Notice
Undefined variable: args in wp-content/plugins/material-design/php/template-parts/blocks/query-pagination-last.php on line 21
- > PHP Notice
Undefined variable: args in wp-content/plugins/material-design/php/template-parts/blocks/query-pagination-next.php on line 21
- > PHP Fatal error
Uncaught Error: Call to a member function get_global_styles() on null in wp-content/plugins/material-design/php/template-parts/blocks/card-query.php:40
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/material-design/php/customizer/class-material-color-palette-control.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
8 plugin tags: blocks, google, gutenberg, material-design, dark-mode...
material-design/material-design.php 85% from 13 tests
The entry point to "Material Design for WordPress" version 0.7.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "5.6.20+")
- Description: Keep the plugin description shorter than 140 characters (currently 269 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin19,726 lines of code in 149 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 21 | 0 | 0 | 12,157 |
PHP | 87 | 1,481 | 4,237 | 6,511 |
XML | 2 | 82 | 174 | 902 |
JavaScript | 10 | 10 | 3 | 103 |
CSS | 17 | 0 | 0 | 31 |
SVG | 12 | 0 | 0 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 3 | 7.50% |
▷ Concrete classes | 37 | 92.50% |
▷ Final classes | 0 | 0.00% |
Methods | 282 | |
▷ Static methods | 36 | 12.77% |
▷ Public methods | 275 | 97.52% |
▷ Protected methods | 3 | 1.06% |
▷ Private methods | 4 | 1.42% |
Functions | 17 | |
▷ Named functions | 9 | 52.94% |
▷ Anonymous functions | 8 | 47.06% |
Constants | 18 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 18 | 100.00% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.44MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/onboarding/apply-your-theme.png | 15.29KB | 4.45KB | ▼ 70.93% |
assets/images/wizard/complete-build-with-blocks.png | 12.67KB | 3.65KB | ▼ 71.22% |
assets/images/wizard/addon-quick-start-examples.png | 17.01KB | 4.97KB | ▼ 70.80% |
assets/images/placeholder.png | 0.12KB | 0.12KB | 0.00% |
assets/images/onboarding/build-with-material-blocks.png | 12.67KB | 3.65KB | ▼ 71.22% |