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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼1.11ms] Passed 4 tests
Server-side resources used by WP Widget Styler
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 43.35 ▼6.05 |
Dashboard /wp-admin | 3.61 ▲0.31 | 55.48 ▼6.08 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 58.80 ▲5.73 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 99.57 ▲2.89 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 42.83 ▲4.82 |
Widget Styler /wp-admin/themes.php?page=wp-widget-styler | 3.53 | 36.28 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
wp-widget-styler-version |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Widget Styler
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.31 ▼0.28 | 2.08 ▼0.23 | 44.04 ▼2.40 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▼0.03 | 86.34 ▼5.43 | 43.88 ▲2.02 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.94 ▼0.04 | 43.41 ▲7.69 | 41.34 ▲7.10 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.03 ▲0.14 | 632.65 ▼77.46 | 55.81 ▼5.33 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▲0.00 | 99.96 ▼12.45 | 43.36 ▼6.36 |
Widget Styler /wp-admin/themes.php?page=wp-widget-styler | 1,010 | 2.30 | 40.20 | 60.23 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- wp-widget-styler-version
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-widget-styler/public/widget-styler-admin.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_Styler_Helper' not found in wp-content/plugins/wp-widget-styler/public/widget-styler-general.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wordpress widgets, widget style, wp widget styler, widget options, custom widget
wp-widget-styler/wp-widget-styler.php Passed 13 tests
"WP Widget Styler" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
Power-up your WordPress widgets using these awesome styler configurations.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,836 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,214 | 333 | 4,602 |
PHP | 13 | 605 | 948 | 1,705 |
CSS | 3 | 87 | 25 | 529 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 34.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 2 | 28.57% |
Methods | 70 | |
▷ Static methods | 21 | 30.00% |
▷ Public methods | 68 | 97.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.86% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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
There were not PNG files found in your plugin