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
Install script ran successfully
Server metrics [RAM: ▲5.12MB] [CPU: ▲22.99ms] 75% from 4 tests
An overview of server-side resources used by Mobile View for Responsive web design optimization (UX design) + Mobile Friendly Test
Please have a look at the following items
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.12MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.00 ▲5.54 | 69.54 ▲29.57 |
Dashboard /wp-admin | 9.02 ▲5.67 | 69.21 ▲9.29 |
Posts /wp-admin/edit.php | 9.02 ▲5.66 | 82.81 ▲36.06 |
Add New Post /wp-admin/post-new.php | 9.50 ▲3.61 | 112.01 ▲17.03 |
Media Library /wp-admin/upload.php | 9.02 ▲5.79 | 71.28 ▲37.96 |
Mobilook /wp-admin/options-general.php?page=mobilook | 9.02 | 61.13 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.02 | 56.83 |
Server storage [IO: ▲4.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 249 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
fs_debug_mode |
theysaidso_admin_options |
fs_active_plugins |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
fs_accounts |
Browser metrics Passed 4 tests
Checking browser requirements for Mobile View for Responsive web design optimization (UX design) + Mobile Friendly Test
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲122 | 14.76 ▲0.38 | 1.81 ▼0.05 | 29.23 ▼15.14 |
Dashboard /wp-admin | 2,249 ▲61 | 5.84 ▲0.95 | 105.34 ▼6.61 | 42.64 ▼0.80 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.04 ▲0.03 | 41.64 ▲0.91 | 38.18 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 22.27 ▲4.76 | 679.24 ▲6.06 | 60.14 ▲9.46 |
Media Library /wp-admin/upload.php | 1,428 ▲49 | 4.25 ▲0.09 | 99.22 ▼6.34 | 47.74 ▲1.12 |
Mobilook /wp-admin/options-general.php?page=mobilook | 1,034 | 1.99 | 34.64 | 62.78 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,087 | 2.23 | 26.88 | 29.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/mobilook/vendor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- fs_active_plugins
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- fs_debug_mode
- fs_accounts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/mobilook/admin/inc/metabox_settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobilook/admin/metabox.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mobilook/inc/sidebar.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/mobilook/inc/faq.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobilook/inc/notices.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=mobilook
- > Javascript (severe) in unknown
/wp-content/plugins/mobilook/assets/mobilook-script-admin.min.js?ver=1640216768 0:1318 Uncaught TypeError: Cannot read properties of null (reading 'contentDocument')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #3, #4 in mobilook/assets to your readme.txt
mobilook/mobilook.php 92% from 13 tests
"Mobile View for Responsive web design optimization (UX design) + Mobile Friendly Test" version 1.2.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 229 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin55,057 lines of code in 194 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 127 | 8,168 | 17,384 | 34,210 |
PO File | 18 | 7,750 | 9,390 | 17,392 |
Sass | 28 | 399 | 77 | 2,515 |
CSS | 14 | 36 | 13 | 631 |
JavaScript | 7 | 103 | 168 | 309 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 88.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,270 | |
▷ Static methods | 201 | 15.83% |
▷ Public methods | 881 | 69.37% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 372 | 29.29% |
Functions | 105 | |
▷ Named functions | 105 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.31MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
vendor/freemius/assets/img/mobilook.png | 31.33KB | 9.85KB | ▼ 68.57% |
assets/imgs/meta-box.png | 261.50KB | 71.31KB | ▼ 72.73% |