80% mobile-booster

Code Review | Mobile Booster

WordPress plugin Mobile Booster scored80%from 54 tests.

About plugin

  • Plugin page: mobile-booster
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Nov 15, 2018
  • Latest release: Mar 28, 2022
  • Number of updates: 14
  • Update frequency: every 87.8 days
  • Top authors: takanakui (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,867 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.53MB] [CPU: ▼2.02ms] Passed 4 tests

A check of server-side resources used by Mobile Booster
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5939.42 ▼5.38
Dashboard /wp-admin3.89 ▲0.5947.06 ▼3.65
Posts /wp-admin/edit.php3.94 ▲0.5849.90 ▲2.80
Add New Post /wp-admin/post-new.php6.41 ▲0.5292.37 ▼0.13
Media Library /wp-admin/upload.php3.65 ▲0.4237.41 ▲1.07
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius4.0137.49

Server storage [IO: ▲3.19MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 177 new files
Database: no new tables, 10 new options
New WordPress options
fs_accounts
theysaidso_admin_options
widget_recent-comments
fs_gdpr
widget_recent-posts
can_compress_scripts
fs_debug_mode
fs_active_plugins
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Mobile Booster: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.24 ▼1.164.74 ▲2.7032.53 ▼10.76
Dashboard /wp-admin2,246 ▲575.01 ▲0.06110.75 ▼10.5843.34 ▼5.45
Posts /wp-admin/edit.php2,126 ▲371.98 ▼0.0640.61 ▲4.3339.39 ▲5.45
Add New Post /wp-admin/post-new.php1,535 ▲1323.09 ▼0.13639.83 ▼16.9355.65 ▲6.21
Media Library /wp-admin/upload.php1,428 ▲374.21 ▲0.0898.48 ▼1.6747.45 ▲3.94
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius1,0721.7223.6227.09

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
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/mobile-booster/freemius/includes/class-freemius.php+8911
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • fs_active_plugins
    • theysaidso_admin_options
    • fs_gdpr
    • fs_accounts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • fs_debug_mode

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: mobile, quicklink, ecommerce, prefetch, cart...

mobile-booster/mobile-booster.php Passed 13 tests

This is the main PHP file of "Mobile Booster" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
99 characters long description:
Boost the user experience and ecommerce sales on mobile devices. Keep your mobile visitors engaged.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected32,950 lines of code in 133 files:
LanguageFilesBlank linesComment linesLines of code
PHP1137,77616,89532,457
Markdown1680214
JavaScript53768205
CSS130147
JSON10027

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,029)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity88.98
▷ Minimum class complexity1.00
▷ Maximum class complexity3,029.00
Average method complexity4.64
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes49
▷ Abstract classes24.08%
▷ Concrete classes4795.92%
▷ Final classes00.00%
Methods1,217
▷ Static methods18114.87%
▷ Public methods85570.25%
▷ Protected methods151.23%
▷ Private methods34728.51%
Functions94
▷ Named functions9398.94%
▷ Anonymous functions11.06%
Constants130
▷ Global constants9875.38%
▷ Class constants3224.62%
▷ Public constants32100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png15.42KB5.30KB▼ 65.62%