10% wp-mobilizer

Code Review | WP-Mobilizer

WordPress plugin WP-Mobilizer scored 10% from 54 tests.

About plugin

  • Plugin page: wp-mobilizer
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 6.3.1
  • First release: Apr 25, 2013
  • Latest release: Feb 10, 2014
  • Number of updates: 27
  • Update frequency: every 10.8 days
  • Top authors: kilukrumedia (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 20,728 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.62 ▲2.05
Dashboard /wp-admin3.39 ▲0.0951.87 ▲7.23
Posts /wp-admin/edit.php3.50 ▲0.1555.36 ▲12.00
Add New Post /wp-admin/post-new.php5.99 ▲0.1189.05 ▲1.51
Media Library /wp-admin/upload.php3.31 ▲0.0941.33 ▲10.17
Overview /wp-admin/admin.php?page=wp-mobilizer3.2836.05
Options /wp-admin/admin.php?page=wp-mobilizer-options3.3740.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲16313.63 ▼0.731.64 ▼0.4341.79 ▼7.13
Dashboard /wp-admin2,301 ▲1165.84 ▼0.0299.71 ▲0.3676.15 ▲33.49
Posts /wp-admin/edit.php2,119 ▲302.07 ▲0.0934.10 ▼2.9130.94 ▼1.74
Add New Post /wp-admin/post-new.php1,546 ▲2722.01 ▼1.17711.27 ▲18.6954.21 ▼1.91
Media Library /wp-admin/upload.php1,418 ▲304.18 ▲0.0297.72 ▲0.8976.22 ▲34.20
Overview /wp-admin/admin.php?page=wp-mobilizer1,4507.09155.5388.13
Options /wp-admin/admin.php?page=wp-mobilizer-options2,0407.08160.9250.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

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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP61,0298813,163
CSS44379498
PO File18686220
JavaScript449112162
SVG10020

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 code0.71
Average class complexity219.00
▷ Minimum class complexity197.00
▷ Maximum class complexity241.00
Average method complexity5.19
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods104
▷ Static methods00.00%
▷ Public methods104100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/admin/layout/right-dual-sidebar.png3.86KB2.08KB▼ 46.18%
images/admin/layout/right-sidebar.png3.90KB2.09KB▼ 46.42%
images/admin/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
images/admin/layout/dual-sidebar.png3.88KB2.09KB▼ 46.20%
images/admin/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%