Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method MSAB::plugin_activation() should not be called statically
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.23ms] Passed 4 tests
An overview of server-side resources used by MobiLoud - Smart App Banners
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 45.15 ▼0.30 |
Dashboard /wp-admin | 3.35 ▲0.05 | 61.59 ▲8.36 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 55.40 ▲5.76 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 86.41 ▼12.34 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.28 ▲1.97 |
Smart App Banners /wp-admin/options-general.php?page=msab | 3.22 | 35.56 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for MobiLoud - Smart App Banners
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,047 ▲286 | 14.94 ▲0.66 | 10.11 ▲8.36 | 42.14 ▼1.34 |
Dashboard /wp-admin | 2,338 ▲161 | 6.16 ▲0.59 | 108.05 ▲12.69 | 40.27 ▼5.00 |
Posts /wp-admin/edit.php | 2,269 ▲169 | 3.31 ▲1.32 | 49.41 ▲12.13 | 32.12 ▼6.40 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.17 ▲0.06 | 659.20 ▼45.43 | 40.87 ▼18.14 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.14 ▼0.03 | 94.57 ▼13.44 | 47.92 ▲1.02 |
Smart App Banners /wp-admin/options-general.php?page=msab | 1,029 | 3.04 | 39.99 | 26.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method MSAB::plugin_deactivation() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=msab
- > Notice in wp-content/plugins/mobiloud-smart-app-banner/admin/class-msab-admin.php+241
Trying to access array offset on value of type bool
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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mobiloud-smart-app-banner/includes/class-msab.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobiloud-smart-app-banner/admin/class-msab-admin.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: mobile app plugin, native app, android app, ios app, wordpress mobile app...
mobiloud-smart-app-banner/msab.php 85% from 13 tests
This is the main PHP file of "MobiLoud - Smart App Banners" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("mobiloud-smart-app-banner.php" instead of "msab.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,063 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 95 | 23 | 507 |
PHP | 4 | 61 | 97 | 304 |
CSS | 3 | 19 | 9 | 248 |
SVG | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.06MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/google-play-get.png | 56.96KB | 56.15KB | ▼ 1.42% |