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
Installer ran successfully
Server metrics [RAM: ▼1.84MB] [CPU: ▼53.06ms] Passed 4 tests
This is a short check of server-side resources used by Refreshingly Simple Slide-in Mobile Menu Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.32 | 4.75 ▼34.74 |
Dashboard /wp-admin | 2.17 ▼1.14 | 6.58 ▼42.22 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 7.49 ▼40.66 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 7.75 ▼94.60 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 5.40 ▼24.18 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Refreshingly Simple Slide-in Mobile Menu Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.68 ▼1.00 | 9.00 ▲7.32 | 39.43 ▼4.89 |
Dashboard /wp-admin | 2,206 ▲15 | 5.92 ▲1.04 | 99.92 ▼8.93 | 38.07 ▼1.26 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.04 ▲0.03 | 38.03 ▲3.55 | 33.37 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.60 ▼5.40 | 666.37 ▼8.70 | 52.19 ▼8.68 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.24 ▲0.01 | 98.49 ▼2.68 | 40.47 ▼2.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dashicons handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
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 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Add widgets.), #2 (Closed.), #3 (Open.)
refreshingly-simple-slide-in-mobile-menu-widget/refreshingly-simple-slide-in-mobile-menu-widget.php 85% from 13 tests
The main PHP file in "Refreshingly Simple Slide-in Mobile Menu Widget" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected740 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 142 | 404 | 642 |
CSS | 1 | 0 | 1 | 57 |
JavaScript | 1 | 1 | 0 | 29 |
JSON | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 24 | 50.00% |
▷ Public methods | 41 | 85.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 14.58% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.41MB with 0.29MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 221.23KB | 71.59KB | ▼ 67.64% |
screenshot-3.png | 121.46KB | 31.72KB | ▼ 73.88% |
screenshot-2.png | 80.59KB | 24.64KB | ▼ 69.43% |