Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/swmenu/swmenu.php+64
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼57.58ms] Passed 4 tests
This is a short check of server-side resources used by swMenu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.69 ▼40.70 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.67 ▼46.22 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.39 ▼47.73 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.23 ▼95.67 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.87 ▼27.32 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_sw_swmenu_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
swMenu: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲138 | 13.82 ▼0.52 | 7.62 ▲6.02 | 40.46 ▼5.10 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.04 | 88.93 ▼0.09 | 36.47 ▼12.57 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 38.24 ▼0.06 | 34.21 ▼4.10 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.32 ▲0.07 | 675.61 ▲18.94 | 53.75 ▲0.11 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.26 ▲0.10 | 100.08 ▼8.84 | 50.17 ▲3.42 |
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
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/swmenu/swmenu.php+64
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_sw_swmenu_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/swmenu/swmenu.php
- > /wp-content/plugins/swmenu/css/PIE.php
- > /wp-content/plugins/swmenu/swmenu_widget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: menu, css3, widget, responsive
swmenu/swmenu.php Passed 13 tests
The primary PHP file in "swMenu" version 1.2 is used by WordPress to initiate all plugin functionality
53 characters long description:
swMenu widget to display a menu created by swmenu.com
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
Success! There were no dangerous files found in this plugin889 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 0 | 0 | 464 |
PHP | 3 | 102 | 70 | 425 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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 are no PNG files in this plugin