Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.74ms] Passed 4 tests
Analyzing server-side resources used by Materialize Accordions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.76 ▲3.38 |
Dashboard /wp-admin | 3.36 ▲0.02 | 48.56 ▼16.46 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 53.13 ▲4.52 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 87.13 ▼15.48 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 46.54 ▲1.61 |
All Accordions /wp-admin/edit.php?post_type=material_accordion | 3.33 | 37.46 |
Add New /wp-admin/post-new.php?post_type=material_accordion | 3.41 | 41.88 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Materialize Accordions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲115 | 15.51 ▲1.16 | 1.86 ▲0.37 | 42.62 ▲2.44 |
Dashboard /wp-admin | 2,271 ▲94 | 6.65 ▲1.03 | 112.91 ▲22.91 | 37.92 ▼6.43 |
Posts /wp-admin/edit.php | 2,332 ▲229 | 4.32 ▲2.32 | 62.51 ▲22.74 | 34.22 ▼3.19 |
Add New Post /wp-admin/post-new.php | 1,742 ▲206 | 27.23 ▲9.10 | 693.92 ▲25.96 | 36.71 ▼33.87 |
Media Library /wp-admin/upload.php | 1,625 ▲228 | 6.14 ▲1.96 | 118.08 ▲12.92 | 42.67 ▼4.93 |
All Accordions /wp-admin/edit.php?post_type=material_accordion | 1,293 | 4.27 | 49.97 | 27.79 |
Add New /wp-admin/post-new.php?post_type=material_accordion | 3,186 | 7.87 | 299.88 | 162.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=material_accordion
- > Notice in wp-content/plugins/materialize-accordions/admin/settings.php+46
Undefined variable: hide_icon
- > GET request to /wp-admin/post-new.php?post_type=material_accordion
- > Notice in wp-content/plugins/materialize-accordions/admin/settings.php+56
Undefined variable: move_icon_checkbox
- > GET request to /wp-admin/post-new.php?post_type=material_accordion
- > Notice in wp-content/plugins/materialize-accordions/admin/settings.php+67
Undefined variable: slower_tabs
- > GET request to /wp-admin/post-new.php?post_type=material_accordion
- > Notice in wp-content/plugins/materialize-accordions/admin/settings.php+77
Undefined variable: show_hide_links
- > GET request to /wp-admin/post-new.php?post_type=material_accordion
- > Notice in wp-content/plugins/materialize-accordions/admin/settings.php+112
Undefined variable: title_size
- > GET request to /wp-admin/post-new.php?post_type=material_accordion
- > Notice in wp-content/plugins/materialize-accordions/admin/settings.php+121
Undefined variable: title_border
- > GET request to /wp-admin/post-new.php?post_type=material_accordion
- > Notice in wp-content/plugins/materialize-accordions/admin/settings.php+130
Undefined variable: desc_size
- > GET request to /wp-admin/post-new.php?post_type=material_accordion
- > Notice in wp-content/plugins/materialize-accordions/admin/settings.php+139
Undefined variable: desc_border
- > GET request to /wp-admin/post-new.php?post_type=material_accordion
- > Notice in wp-content/plugins/materialize-accordions/admin/settings.php+147
Undefined variable: icon_font_clr
- > GET request to /wp-admin/post-new.php?post_type=material_accordion
- > Notice in wp-content/plugins/materialize-accordions/admin/settings.php+153
Undefined variable: show_hide_clr
- > GET request to /wp-admin/post-new.php?post_type=material_accordion
- > Notice in wp-content/plugins/materialize-accordions/admin/settings.php+159
Undefined variable: show_hide_font_clr
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/materialize-accordions/admin/partials/materialize_sections.php
- > /wp-content/plugins/materialize-accordions/admin/settings.php
- 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: slower_tabs in wp-content/plugins/materialize-accordions/admin/settings.php on line 67
- > PHP Notice
Undefined variable: hide_icon in wp-content/plugins/materialize-accordions/admin/settings.php on line 46
- > PHP Notice
Undefined variable: _title_font_clr in wp-content/plugins/materialize-accordions/admin/settings.php on line 28
- > PHP Notice
Undefined variable: title_size in wp-content/plugins/materialize-accordions/admin/settings.php on line 112
- > PHP Notice
Undefined variable: _desc_bg_clr in wp-content/plugins/materialize-accordions/admin/settings.php on line 33
- > PHP Notice
Undefined variable: move_icon_checkbox in wp-content/plugins/materialize-accordions/admin/settings.php on line 56
- > PHP Notice
Undefined variable: _title_bg_clr in wp-content/plugins/materialize-accordions/admin/settings.php on line 23
- > PHP Notice
Undefined variable: _desc_font_clr in wp-content/plugins/materialize-accordions/admin/settings.php on line 38
- > PHP Notice
Undefined variable: show_hide_links in wp-content/plugins/materialize-accordions/admin/settings.php on line 77
- > PHP Notice
Undefined variable: show_hide_font_clr in wp-content/plugins/materialize-accordions/admin/settings.php on line 159
- > PHP Notice
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 errors were detected
Optimizations
Plugin configuration 90% 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
7 plugin tags: faq, tabs, deep linking, collapisbile, accordion...
materialize-accordions/materialize_accordions.php 77% from 13 tests
The main PHP file in "Materialize Accordions" ver. 1.5.10 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("materialize-accordions.php" instead of "materialize_accordions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,531 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 402 | 566 | 945 |
CSS | 2 | 2 | 2 | 483 |
JavaScript | 1 | 21 | 6 | 103 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 11.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icons.png | 20.69KB | 5.32KB | ▼ 74.28% |