Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼140.13ms] Passed 4 tests
Analyzing server-side resources used by Add Smart App Banner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.13 | 36.23 ▲18.59 |
Dashboard /wp-admin | 3.08 ▲0.02 | 48.85 ▲0.17 |
Posts /wp-admin/edit.php | 3.13 ▲0.01 | 43.68 ▼6.41 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 93.28 ▼556.02 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 31.94 ▲1.76 |
Smart App Banners /wp-admin/options-general.php?page=Smart-App-Banners | 3.02 | 30.48 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Add Smart App Banner: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,694 ▲47 | 16.39 ▲0.80 | 14.64 ▲5.12 | 47.37 ▼1.77 |
Dashboard /wp-admin | 2,977 ▲40 | 6.03 ▼0.13 | 149.78 ▼0.86 | 117.03 ▲3.90 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.73 ▲0.01 | 58.94 ▼3.97 | 91.38 ▲3.05 |
Add New Post /wp-admin/post-new.php | 1,675 ▲177 | 18.79 ▼0.03 | 364.76 ▼4.77 | 103.94 ▼5.15 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.03 ▼0.00 | 143.66 ▼8.71 | 122.59 ▼3.90 |
Smart App Banners /wp-admin/options-general.php?page=Smart-App-Banners | 1,374 | 2.10 | 54.40 | 78.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=Smart-App-Banners
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=Smart-App-Banners
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/add-smart-app-banner/sab-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-smart-app-banner/add-smart-app-banner.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Modified settings panel with Smart App Banner.), #2 (How the smart banner will look on mobile devices)
add-smart-app-banner/add-smart-app-banner.php Passed 13 tests
Analyzing the main PHP file in "Add Smart App Banner" version 1.0
63 characters long description:
Add a Smart App Banner to your website to increase app installs
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
Everything looks great! No dangerous files found in this plugin590 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 34 | 18 | 313 |
CSS | 1 | 46 | 4 | 244 |
JavaScript | 1 | 0 | 0 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 43.06KB | 18.29KB | ▼ 57.53% |
screenshot-1.png | 48.59KB | 20.60KB | ▼ 57.60% |