Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.90MB] [CPU: ▲24.87ms] Passed 4 tests
Analyzing server-side resources used by Mobile blocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.80 ▲5.34 | 73.37 ▲30.32 |
Dashboard /wp-admin | 8.82 ▲5.52 | 70.04 ▲23.21 |
Posts /wp-admin/edit.php | 8.82 ▲5.47 | 67.29 ▲16.13 |
Add New Post /wp-admin/post-new.php | 9.15 ▲3.26 | 121.91 ▲32.49 |
Media Library /wp-admin/upload.php | 8.82 ▲5.60 | 65.07 ▲29.83 |
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius | 8.82 | 55.55 |
Server storage [IO: ▲3.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 174 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
fs_debug_mode |
widget_recent-posts |
db_upgraded |
fs_accounts |
fs_gdpr |
fs_active_plugins |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Mobile blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲80 | 13.63 ▼0.80 | 2.02 ▼0.11 | 34.66 ▼5.35 |
Dashboard /wp-admin | 2,243 ▲55 | 5.85 ▼0.03 | 102.10 ▼2.97 | 42.24 ▲1.64 |
Posts /wp-admin/edit.php | 2,126 ▲34 | 2.01 ▲0.02 | 35.55 ▼7.36 | 36.36 ▼1.64 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 17.44 ▼5.74 | 617.31 ▼67.47 | 51.27 ▼8.35 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.18 ▼0.03 | 95.91 ▼3.76 | 46.05 ▲2.51 |
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius | 1,072 | 1.71 | 26.71 | 29.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/mobile-blocks/freemius/includes/class-freemius.php+8911
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- fs_active_plugins
- fs_debug_mode
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- fs_accounts
- fs_gdpr
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (**Mobile blocks Example.**) image missing
mobile-blocks/mobile-blocks.php Passed 13 tests
The main PHP script in "Mobile blocks" version 1.2.1 is automatically included on every request by WordPress
89 characters long description:
Boost the user experience with dedicate mobile blocks. Keep your mobile visitors engaged.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin32,826 lines of code in 131 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 7,755 | 16,868 | 32,369 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
JSON | 1 | 0 | 0 | 27 |
CSS | 13 | 0 | 0 | 22 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- 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.73 |
▷ 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,214 | |
▷ Static methods | 181 | 14.91% |
▷ Public methods | 853 | 70.26% |
▷ Protected methods | 15 | 1.24% |
▷ Private methods | 346 | 28.50% |
Functions | 93 | |
▷ Named functions | 93 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 2.03KB | 1.73KB | ▼ 14.71% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |