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
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/mobile-app-banners/index.php+782
Function create_function() is deprecated
Server metrics [RAM: ▼1.72MB] [CPU: ▼55.80ms] Passed 4 tests
A check of server-side resources used by Mobile App Banners
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 9.42 ▼29.74 |
Dashboard /wp-admin | 2.30 ▼1.04 | 8.10 ▼59.27 |
Posts /wp-admin/edit.php | 2.30 ▼1.05 | 11.08 ▼40.66 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.58 | 7.63 ▼93.53 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 7.06 ▼29.04 |
Mobile App Banners /wp-admin/options-general.php?page=mobile_app_banners-setting-admin | 2.30 | 8.07 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_mobile_app_android_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_mobile_app_banners_widget |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Mobile App Banners
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.38 ▲0.00 | 1.87 ▲0.08 | 41.89 ▼0.87 |
Dashboard /wp-admin | 2,210 ▲33 | 5.55 ▼0.10 | 86.76 ▼8.48 | 39.90 ▼1.22 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.98 ▲0.01 | 35.47 ▼2.72 | 37.57 ▲4.69 |
Add New Post /wp-admin/post-new.php | 6,248 ▲4,717 | 26.09 ▲2.95 | 862.13 ▲212.04 | 71.82 ▲11.60 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.22 ▲0.00 | 96.74 ▼14.41 | 47.75 ▲1.30 |
Mobile App Banners /wp-admin/options-general.php?page=mobile_app_banners-setting-admin | 920 | 2.01 | 25.58 | 37.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/mobile-app-banners/index.php+782
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_mobile_app_banners_widget
- theysaidso_admin_options
- widget_mobile_app_android_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mobile_app_banners-setting-admin
- > Deprecated in wp-content/plugins/mobile-app-banners/index.php+989
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=mobile_app_banners-setting-admin
- > Warning in wp-content/plugins/mobile-app-banners/index.php(782) : runtime-created function+1
Use of undefined constant mobile_app_banners_widget - assumed 'mobile_app_banners_widget' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=mobile_app_banners-setting-admin
- > Warning in wp-content/plugins/mobile-app-banners/index.php(989) : runtime-created function+1
Use of undefined constant mobile_app_android_widget - assumed 'mobile_app_android_widget' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=mobile_app_banners-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=mobile_app_banners-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mobile_app_banners-setting-admin
- > Warning in wp-content/plugins/mobile-app-banners/index.php+243
Use of undefined constant placeholder - assumed 'placeholder' (this will throw an Error in a future version of PHP)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mobile_app_banners-setting-admin
- > Warning in wp-content/plugins/mobile-app-banners/index.php+234
Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=mobile_app_banners-setting-admin
- > Notice in wp-content/plugins/mobile-app-banners/index.php+246
Undefined index: default
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mobile_app_banners-setting-admin
- > Warning in wp-content/plugins/mobile-app-banners/index.php+234
Use of undefined constant desc - assumed 'desc' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=mobile_app_banners-setting-admin
- > Notice in wp-content/plugins/mobile-app-banners/index.php+247
Undefined index: desc
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mobile-app-banners/index.php:14
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (Easily add "Download on the App Store" and "Download for Android" badges using widgets or [app-store-download id=yourid] and [android-download id=yourid] shortcodes)
- Tags: There are too many tags (15 tag instead of maximum 10)
mobile-app-banners/index.php 85% from 13 tests
"Mobile App Banners" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mobile-app-banners.php" instead of "index.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 352 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected733 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 207 | 198 | 584 |
PO File | 2 | 42 | 42 | 149 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/download_on_the_app_store.png | 10.81KB | 5.88KB | ▼ 45.60% |
images/download_for_android.png | 12.50KB | 4.38KB | ▼ 64.96% |