Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.69MB] [CPU: ▼51.20ms] Passed 4 tests
A check of server-side resources used by Universal Network Web Mobile Ads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.17 | 6.14 ▼37.53 |
Dashboard /wp-admin | 2.32 ▼0.99 | 8.74 ▼43.30 |
Posts /wp-admin/edit.php | 2.32 ▼1.04 | 9.95 ▼40.07 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.57 | 10.30 ▼83.90 |
Media Library /wp-admin/upload.php | 2.32 ▼0.91 | 10.29 ▼28.80 |
Universal App /wp-admin/admin.php?page=Universal_post | 2.32 | 7.90 |
Social /wp-admin/admin.php?page=universal_admin_social_page | 2.32 | 9.70 |
Categories /wp-admin/admin.php?page=universal_app_categories | 2.32 | 10.47 |
Debug /wp-admin/admin.php?page=universal_app_debug | 2.32 | 9.25 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 25 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_uni_push_notification_table |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Universal Network Web Mobile Ads
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲67 | 14.84 ▲0.53 | 1.85 ▼0.74 | 38.34 ▼6.75 |
Dashboard /wp-admin | 2,256 ▲53 | 5.85 ▲0.04 | 98.36 ▼10.27 | 39.55 ▼1.99 |
Posts /wp-admin/edit.php | 2,138 ▲41 | 2.00 ▼0.05 | 39.61 ▲3.43 | 38.21 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,558 ▲12 | 17.46 ▼5.65 | 646.65 ▼55.64 | 64.91 ▲6.01 |
Media Library /wp-admin/upload.php | 1,438 ▲35 | 4.19 ▼0.02 | 106.32 ▼0.52 | 47.28 ▼0.61 |
Universal App /wp-admin/admin.php?page=Universal_post | 1,147 | 2.03 | 22.75 | 29.90 |
Social /wp-admin/admin.php?page=universal_admin_social_page | 907 | 2.06 | 22.95 | 31.84 |
Categories /wp-admin/admin.php?page=universal_app_categories | 916 | 2.19 | 23.49 | 34.56 |
Debug /wp-admin/admin.php?page=universal_app_debug | 951 | 2.03 | 27.33 | 31.34 |
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
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the universal-app-admin-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% 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
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=universal_app_debug
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the universal-app-admin-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/admin.php?page=universal_app_categories
- > Warning in wp-content/plugins/universal-mobile-app/view/admin/categories.php+113
array_key_exists() expects parameter 2 to be array, bool given
SRP 0% from 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
Almost there! Just fix the following items
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/universal-mobile-app/view/admin/categories.php
- > /wp-content/plugins/universal-mobile-app/view/public/small_interstitial.php
- > /wp-content/plugins/universal-mobile-app/view/public/small_banner_top.php
- > /wp-content/plugins/universal-mobile-app/view/admin/cron-gui.php
- > /wp-content/plugins/universal-mobile-app/view/admin/debug.php
- > /wp-content/plugins/universal-mobile-app/view/admin/social-settings.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/universal-mobile-app/universal-mobile-ads.php:173
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/universal-mobile-app/fb-api.php:4
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== universal-mobile-app ===
) - Screenshots: Add images for these screenshots: #1 (Mobile ads shown on android device.), #2 (Screenshot of the administration panel)
universal-mobile-app/universal-mobile-ads.php 92% from 13 tests
This is the main PHP file of "Universal Network Web Mobile Ads" version 1.6.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("universal-mobile-app.php" instead of "universal-mobile-ads.php")
Code Analysis Passed 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
There were no executable files found in this plugin2,157 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 270 | 70 | 1,341 |
JavaScript | 1 | 91 | 44 | 361 |
CSS | 3 | 39 | 14 | 299 |
PO File | 2 | 40 | 42 | 156 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 5 | 22.73% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.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
3 PNG files occupy 0.18MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 140.34KB | 44.76KB | ▼ 68.11% |
assets/screenshot-2.png | 48.11KB | 27.96KB | ▼ 41.88% |
img/Universal.png | 0.69KB | 0.62KB | ▼ 9.38% |