Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
Server metrics [RAM: ▲0.09MB] [CPU: ▲5.24ms] Passed 4 tests
This is a short check of server-side resources used by WP-Mobilizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.62 ▲2.05 |
Dashboard /wp-admin | 3.39 ▲0.09 | 51.87 ▲7.23 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 55.36 ▲12.00 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 89.05 ▲1.51 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 41.33 ▲10.17 |
Overview /wp-admin/admin.php?page=wp-mobilizer | 3.28 | 36.05 |
Options /wp-admin/admin.php?page=wp-mobilizer-options | 3.37 | 40.31 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
WP-Mobilizer: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲163 | 13.63 ▼0.73 | 1.64 ▼0.43 | 41.79 ▼7.13 |
Dashboard /wp-admin | 2,301 ▲116 | 5.84 ▼0.02 | 99.71 ▲0.36 | 76.15 ▲33.49 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.07 ▲0.09 | 34.10 ▼2.91 | 30.94 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 22.01 ▼1.17 | 711.27 ▲18.69 | 54.21 ▼1.91 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.18 ▲0.02 | 97.72 ▲0.89 | 76.22 ▲34.20 |
Overview /wp-admin/admin.php?page=wp-mobilizer | 1,450 | 7.09 | 155.53 | 88.13 |
Options /wp-admin/admin.php?page=wp-mobilizer-options | 2,040 | 7.08 | 160.92 | 50.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-mobilizer/mblzr_class.php:21
- > PHP Warning
Use of undefined constant MBLZR_PLUGIN_DIRNAME - assumed 'MBLZR_PLUGIN_DIRNAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mobilizer/pages/options.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-mobilizer/pages/options.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-mobilizer/wp-mobilizer.php:47
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-mobilizer-options
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-mobilizer/js/admin/htmlhead_options.js?ver=1.0.7:41:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-mobilizer-options
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-mobilizer-options
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-mobilizer-options
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-mobilizer-options
- > Console-api (warning) in unknown
https://www.google.com/adsense/domains/caf.js?abp=1 289:31 "The following CSA option(s) are unsupported: optimizeTerms"
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-mobilizer-options
- > Other (warning) in unknown
https://www.google.com/adsense/domains/caf.js?abp=1 223 Unrecognized feature: 'attribution-reporting'.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #2, #3 in wp-mobilizer/assets to your readme.txt
- Tags: You are using too many tags: 16 tag instead of maximum 10
wp-mobilizer/wp-mobilizer.php 92% from 13 tests
The entry point to "WP-Mobilizer" version 1.0.8 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 216 characters long)
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
Success! There were no dangerous files found in this plugin4,063 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 1,029 | 881 | 3,163 |
CSS | 4 | 43 | 79 | 498 |
PO File | 1 | 86 | 86 | 220 |
JavaScript | 4 | 49 | 112 | 162 |
SVG | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.71 |
Average class complexity | 219.00 |
▷ Minimum class complexity | 197.00 |
▷ Maximum class complexity | 241.00 |
Average method complexity | 5.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.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 | 104 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 104 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 20 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/admin/layout/right-dual-sidebar.png | 3.86KB | 2.08KB | ▼ 46.18% |
images/admin/layout/right-sidebar.png | 3.90KB | 2.09KB | ▼ 46.42% |
images/admin/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
images/admin/layout/dual-sidebar.png | 3.88KB | 2.09KB | ▼ 46.20% |
images/admin/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |