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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 39.42 ▼5.38 |
Dashboard /wp-admin | 3.89 ▲0.59 | 47.06 ▼3.65 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 49.90 ▲2.80 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 92.37 ▼0.13 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 37.41 ▲1.07 |
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius | 4.01 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 13.24 ▼1.16 | 4.74 ▲2.70 | 32.53 ▼10.76 |
Dashboard /wp-admin | 2,246 ▲57 | 5.01 ▲0.06 | 110.75 ▼10.58 | 43.34 ▼5.45 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 1.98 ▼0.06 | 40.61 ▲4.33 | 39.39 ▲5.45 |
Add New Post /wp-admin/post-new.php | 1,535 ▲13 | 23.09 ▼0.13 | 639.83 ▼16.93 | 55.65 ▲6.21 |
Media Library /wp-admin/upload.php | 1,428 ▲37 | 4.21 ▲0.08 | 98.48 ▼1.67 | 47.45 ▲3.94 |
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius | 1,072 | 1.72 | 23.62 | 27.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 7,776 | 16,895 | 32,457 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 5 | 37 | 68 | 205 |
CSS | 13 | 0 | 1 | 47 |
JSON | 1 | 0 | 0 | 27 |
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 code | 0.63 |
Average class complexity | 88.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,029.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,217 | |
▷ Static methods | 181 | 14.87% |
▷ Public methods | 855 | 70.25% |
▷ Protected methods | 15 | 1.23% |
▷ Private methods | 347 | 28.51% |
Functions | 94 | |
▷ Named functions | 93 | 98.94% |
▷ Anonymous functions | 1 | 1.06% |
Constants | 130 | |
▷ Global constants | 98 | 75.38% |
▷ Class constants | 32 | 24.62% |
▷ Public constants | 32 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 15.42KB | 5.30KB | ▼ 65.62% |