Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.11ms] Passed 4 tests
Server-side resources used by Mobilize
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.29 ▲4.70 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.44 ▲0.86 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 44.08 ▼0.22 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 79.09 ▼5.80 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.77 ▲5.17 |
Mobilize /wp-admin/options-general.php?page=mobilize_options | 3.26 | 30.54 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 15 new options
New WordPress options |
---|
mobilize_menubar_maxwidth |
mobilize_menu_toggle |
widget_recent-comments |
mobilize_link_flavour |
theysaidso_admin_options |
db_upgraded |
mobilize_text_flavour |
mobilize_menu_close |
mobilize_theme |
mobilize_slide_direction |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Mobilize
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲52 | 14.53 ▲0.18 | 1.83 ▲0.08 | 57.71 ▲17.87 |
Dashboard /wp-admin | 2,215 ▲38 | 5.62 ▲0.03 | 85.20 ▼4.54 | 41.27 ▲0.52 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.02 ▲0.01 | 32.81 ▼3.59 | 34.53 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.22 ▼0.07 | 602.65 ▼95.55 | 63.61 ▲7.38 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.16 ▼0.24 | 95.23 ▼2.11 | 45.08 ▲1.72 |
Mobilize /wp-admin/options-general.php?page=mobilize_options | 1,200 | 2.02 | 22.42 | 56.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 15 options in the database
- widget_theysaidso_widget
- mobilize_menu_toggle
- mobilize_flavour
- mobilize_slide_direction
- mobilize_link_flavour
- mobilize_menu_close
- can_compress_scripts
- db_upgraded
- mobilize_text_flavour
- theysaidso_admin_options
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Mobilize settings page #1), #2 (Mobilize settings page #2), #3 (Mobilize demo)
mobilize/mobilize.php Passed 13 tests
The primary PHP file in "Mobilize" version 3.0.5 is used by WordPress to initiate all plugin functionality
73 characters long description:
Mobilize adds a swipe menu to any site, when the width is lower than 768.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected508 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 49 | 27 | 279 |
CSS | 3 | 15 | 9 | 168 |
JavaScript | 2 | 6 | 8 | 36 |
XML | 1 | 7 | 4 | 25 |
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.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
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 compressed PNG files occupy 0.05MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.59KB | 20.25KB | 0.00% |
screenshot-3.png | 11.72KB | 11.19KB | ▼ 4.51% |
screenshot-2.png | 15.35KB | 15.60KB | 0.00% |