Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼311.17ms] Passed 4 tests
An overview of server-side resources used by Materializer WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.19 | 59.91 ▲5.93 |
Dashboard /wp-admin | 3.54 ▲0.13 | 46.04 ▲9.01 |
Posts /wp-admin/edit.php | 3.77 ▲0.13 | 41.81 ▲1.44 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.04 | 101.15 ▼1,254.02 |
Media Library /wp-admin/upload.php | 3.42 ▲0.12 | 29.80 ▲1.99 |
Server storage [IO: ▲5.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 83 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Materializer WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,890 ▲136 | 17.14 ▲1.27 | 21.39 ▲15.22 | 2.58 ▼0.52 |
Dashboard /wp-admin | 2,907 ▲23 | 6.44 ▼0.06 | 131.32 ▼13.63 | 156.04 ▼8.00 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.43 ▲0.00 | 64.53 ▲2.60 | 144.16 ▲4.43 |
Add New Post /wp-admin/post-new.php | 1,616 ▼73 | 19.70 ▼1.55 | 419.73 ▼1.56 | 158.77 ▼21.95 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.72 ▼0.00 | 137.67 ▲0.39 | 189.00 ▼0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/materializer/lib/colors.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MaterializerShortcodes' not found in wp-content/plugins/materializer/components/sidenav.php:9
- > PHP Fatal error
Uncaught Error: Class 'MaterializerShortcodes' not found in wp-content/plugins/materializer/components/tabs.php:9
- > PHP Fatal error
Uncaught Error: Class 'MaterializerShortcodes' not found in wp-content/plugins/materializer/components/cards.php:9
- > PHP Fatal error
Uncaught Error: Class 'MaterializerShortcodes' not found in wp-content/plugins/materializer/components/preloader.php:9
- > PHP Fatal error
Uncaught Error: Class 'MaterializerShortcodes' not found in wp-content/plugins/materializer/components/pagination.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/materializer/materializer.php:54
- > PHP Fatal error
Uncaught Error: Class 'MaterializerShortcodes' not found in wp-content/plugins/materializer/components/footer.php:9
- > PHP Fatal error
Uncaught Error: Class 'MaterializerShortcodes' not found in wp-content/plugins/materializer/components/collections.php:9
- > PHP Fatal error
Uncaught Error: Class 'MaterializerShortcodes' not found in wp-content/plugins/materializer/components/dropdown.php:9
- > PHP Fatal error
Uncaught Error: Class 'MaterializerShortcodes' not found in wp-content/plugins/materializer/components/tables.php:9
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: material components, google, design, material ui, ui...
materializer/materializer.php Passed 13 tests
The main PHP file in "Materializer WP" ver. 0.2.0 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
The Material Design components for WordPress
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 plugin16,275 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,912 | 2,274 | 7,653 |
CSS | 1 | 24 | 440 | 5,740 |
PHP | 17 | 226 | 318 | 1,130 |
Markdown | 2 | 352 | 0 | 948 |
SVG | 1 | 0 | 0 | 751 |
JSON | 1 | 0 | 0 | 32 |
Sass | 1 | 8 | 0 | 21 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 8.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 38 | 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 | 0 | |
▷ Global constants | 0 | 0.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
34 PNG files occupy 2.39MB with 1.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/screenshots/materializer-logo.png | 24.52KB | 9.25KB | ▼ 62.28% |
docs/screenshots/materializer-card-reveal-outer.png | 300.75KB | 83.64KB | ▼ 72.19% |
docs/screenshots/materializer-image-box.png | 1,185.56KB | 420.80KB | ▼ 64.51% |
docs/screenshots/materializer-dropdown-closed.png | 3.64KB | 2.00KB | ▼ 44.88% |
docs/screenshots/materializer-collection-links.png | 5.20KB | 1.43KB | ▼ 72.50% |