Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.92MB] [CPU: ▼60.87ms] Passed 4 tests
Server-side resources used by Smart1Waze Floating Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 5.19 ▼46.98 |
Dashboard /wp-admin | 2.09 ▼1.22 | 5.63 ▼48.93 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.82 ▼43.65 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.47 ▼103.90 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.55 ▼28.76 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Smart1Waze Floating Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲50 | 14.35 ▼0.30 | 1.80 ▼0.01 | 44.19 ▲0.24 |
Dashboard /wp-admin | 2,217 ▲40 | 5.64 ▲0.06 | 89.26 ▼10.02 | 41.46 ▼1.33 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.03 ▼0.00 | 37.92 ▲1.65 | 36.63 ▲3.42 |
Add New Post /wp-admin/post-new.php | 6,239 ▲4,711 | 18.70 ▼4.37 | 921.41 ▲236.54 | 57.62 ▼5.41 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.25 ▲0.05 | 100.24 ▼12.25 | 43.35 ▼4.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/smart1waze-floating-widget/smart1waze-widget.php+19
Use of undefined constant SM1WAZE_BASE_DIR - assumed 'SM1WAZE_BASE_DIR' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/smart1waze-floating-widget/views/admin-settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smart1waze-floating-widget/views/admin-edit-taxonomy-metabox.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smart1waze-floating-widget/views/admin-post-metabox.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart1waze-floating-widget/smart1waze-widget.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/smart1waze-floating-widget/views/admin-edit-profile.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smart1waze-floating-widget/views/admin-add-taxonomy-metabox.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: waze, waze widget
smart1waze-floating-widget/smart1waze-widget.php 85% from 13 tests
The principal PHP file in "Smart1Waze Floating Widget" v. 0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("smart1waze-floating-widget.php" instead of "smart1waze-widget.php")
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
Good job! No executable or dangerous file extensions detected1,949 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 52 | 53 | 1,305 |
PHP | 10 | 66 | 34 | 502 |
JavaScript | 2 | 9 | 0 | 142 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/admin-icon.png | 2.79KB | 2.37KB | ▼ 15.19% |