Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+4650
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼54.17ms] Passed 4 tests
An overview of server-side resources used by Blappsta Mobile App Plugin - Your native, mobile iPhone App and Android App
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.70 ▼31.94 |
Dashboard /wp-admin | 2.12 ▼1.22 | 5.66 ▼52.85 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 5.00 ▼41.68 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 5.17 ▼90.19 |
Media Library /wp-admin/upload.php | 2.12 ▼1.10 | 4.45 ▼30.07 |
Blappsta Plugin /wp-admin/options-general.php?page=nh_ynaa_plugin_options | 2.12 | 6.05 |
Server storage [IO: ▲2.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 97 new files
Database: 1 new table, 26 new options
New tables |
---|
wp_nh_locations |
New WordPress options |
---|
can_compress_scripts |
nh_ynaa_homepreset_settings_ts |
nh_ynaa_db_version |
nh_ynaa_blappsta |
nh_ynaa_blappsta_ts |
widget_recent-posts |
nh_ynaa_push_settings |
nh_ynaa_general_settings |
nh_ynaa_teaser_settings_ts |
nh_ynaa_categories_settings_ts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Blappsta Mobile App Plugin - Your native, mobile iPhone App and Android App
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲42 | 13.30 ▼0.99 | 1.60 ▼0.28 | 44.74 ▲3.57 |
Dashboard /wp-admin | 2,214 ▲26 | 4.89 ▼0.19 | 96.68 ▼8.55 | 37.63 ▼6.50 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.28 ▲0.23 | 33.14 ▼6.22 | 34.04 ▲0.71 |
Add New Post /wp-admin/post-new.php | 6,249 ▲4,707 | 26.18 ▲8.04 | 901.43 ▲251.52 | 58.48 ▼0.55 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.31 ▲0.11 | 93.83 ▼5.06 | 43.36 ▲0.40 |
Blappsta Plugin /wp-admin/options-general.php?page=nh_ynaa_plugin_options | 2,262 | 8.94 | 232.31 | 36.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+4650
Function create_function() is deprecated
- Zombie tables were found after uninstall: 1 table
- wp_nh_locations
- The uninstall procedure has failed, leaving 26 options in the database
- nh_ynaa_css_settings
- nh_ynaa_push_settings_ts
- nh_ynaa_general_settings
- nh_ynaa_articles_ts
- nh_ynaa_css_settings_ts
- nh_ynaa_categories_settings
- nh_ynaa_menu_settings_ts
- nh_ynaa_teaser_settings
- widget_recent-posts
- nh_ynaa_db_version
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Deprecated in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+4650
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in NH_Blappsta_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+660
Undefined index: eventplugin
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1574
Undefined index: settings-updated
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1623
Undefined property: NH_YNAA_Plugin::$admin_page
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > 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=nh_ynaa_plugin_options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1204
Undefined index: social_fbsecretid
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1204
Undefined index: social_fbappid
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1204
Undefined index: social_fbid
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1440
Undefined index: hidesharing
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1440
Undefined index: hidedate
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1471
Undefined index: textToSpeech
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Warning in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1485
in_array() expects parameter 2 to be array, null given
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1390
Undefined variable: aktiveventplugis
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1440
Undefined index: location
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1440
Undefined index: nogallery
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1440
Undefined index: gadgetry
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1204
Undefined index: gaTrackID
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1440
Undefined index: blank_lines
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1440
Undefined index: utf8
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1440
Undefined index: json_embedded
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1440
Undefined index: domcontent
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+1440
Undefined index: debug
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Notice in wp-content/plugins/yournewsapp/nh_ynaa_plugin.php+4558
Trying to get property 'ID' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/yournewsapp/pushScript.php
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined index: debug in wp-content/plugins/yournewsapp/include/nh_ynaa_settings.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/yournewsapp/include/nh_ynaa_homepresets.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/yournewsapp/include/teaser.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/yournewsapp/include/nh_ynaa_categories.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yournewsapp/classes/nh-widget.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/yournewsapp/include/nh_ynaa_get_appcontent.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/yournewsapp/include/nh_ynaa_categories_settings_desc_.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/yournewsapp/include/nh_the_home_content.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/yournewsapp/facebook-php-sdk-master/tests/tests.php:18
- > PHP Notice
Constant APPKEY already defined in wp-content/plugins/yournewsapp/pushScript.php on line 11
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Network (severe)
https://assets.zendesk.com/external/zenbox/v2.6/zenbox.js - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Network (severe)
https://assets.zendesk.com/external/zenbox/v2.6/zenbox.css - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/yournewsapp/js/ynaa.js?ver=1.1:76:46)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=nh_ynaa_plugin_options
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: Screenshot #1 (Settings page of the plugin) image missing
- Tags: There are too many tags (87 tag instead of maximum 10)
yournewsapp/nh_ynaa_plugin.php 92% from 13 tests
"Blappsta Mobile App Plugin - Your native, mobile iPhone App and Android App" version 0.8.8.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yournewsapp.php" instead of "nh_ynaa_plugin.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please make sure to remedy the following
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/yournewsapp/facebook-php-sdk-master/src/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 1,510 | 2,015 | 10,189 |
SVG | 6 | 0 | 0 | 3,860 |
CSS | 6 | 177 | 68 | 769 |
PO File | 1 | 337 | 525 | 719 |
JavaScript | 5 | 162 | 168 | 589 |
Markdown | 2 | 34 | 0 | 101 |
JSON | 1 | 0 | 0 | 25 |
YAML | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 38.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 587.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 374 | |
▷ Static methods | 23 | 6.15% |
▷ Public methods | 289 | 77.27% |
▷ Protected methods | 54 | 14.44% |
▷ Private methods | 31 | 8.29% |
Functions | 22 | |
▷ Named functions | 5 | 22.73% |
▷ Anonymous functions | 17 | 77.27% |
Constants | 21 | |
▷ Global constants | 10 | 47.62% |
▷ Class constants | 11 | 52.38% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/widgets/icon-window.png | 4.97KB | 2.94KB | ▼ 40.79% |
img/widgets/apple_store_de.png | 4.64KB | 2.43KB | ▼ 47.64% |
img/widgets/apple_store_en.png | 5.19KB | 2.77KB | ▼ 46.67% |
img/blappsta_title.png | 8.38KB | 4.92KB | ▼ 41.33% |
img/placeholder.png | 3.86KB | 2.15KB | ▼ 44.30% |