90% mobilize

Code Review | Mobilize

WordPress plugin Mobilize scored90%from 54 tests.

About plugin

  • Plugin page: mobilize
  • Plugin version: 3.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Apr 18, 2015
  • Latest release: Oct 26, 2023
  • Number of updates: 23
  • Update frequency: every 135.4 days
  • Top authors: butterflymedia (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /9,942 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.29 ▲4.70
Dashboard /wp-admin3.36 ▲0.0647.44 ▲0.86
Posts /wp-admin/edit.php3.41 ▲0.0644.08 ▼0.22
Add New Post /wp-admin/post-new.php5.96 ▲0.0879.09 ▼5.80
Media Library /wp-admin/upload.php3.28 ▲0.0635.77 ▲5.17
Mobilize /wp-admin/options-general.php?page=mobilize_options3.2630.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲5214.53 ▲0.181.83 ▲0.0857.71 ▲17.87
Dashboard /wp-admin2,215 ▲385.62 ▲0.0385.20 ▼4.5441.27 ▲0.52
Posts /wp-admin/edit.php2,117 ▲172.02 ▲0.0132.81 ▼3.5934.53 ▼1.39
Add New Post /wp-admin/post-new.php1,543 ▲1523.22 ▼0.07602.65 ▼95.5563.61 ▲7.38
Media Library /wp-admin/upload.php1,420 ▲174.16 ▼0.2495.23 ▼2.1145.08 ▲1.72
Mobilize /wp-admin/options-general.php?page=mobilize_options1,2002.0222.4256.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)
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP24927279
CSS3159168
JavaScript26836
XML17425

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 code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png19.59KB20.25KB0.00%
screenshot-3.png11.72KB11.19KB▼ 4.51%
screenshot-2.png15.35KB15.60KB0.00%