Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.64MB] [CPU: ▼16.24ms] Passed 4 tests
An overview of server-side resources used by Smart App Banner
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 41.60 ▲4.25 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.34 ▼2.44 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 50.89 ▲1.47 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.74 | 34.71 ▼67.02 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.63 ▲3.05 |
Smart App Banner /wp-admin/options-general.php?page=wsl-smart-app-banner | 3.26 | 31.90 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart App Banner
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.47 ▲0.20 | 1.70 ▼0.24 | 43.36 ▼6.13 |
Dashboard /wp-admin | 2,207 ▲19 | 5.79 ▲0.90 | 101.03 ▼7.69 | 40.01 ▼3.63 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.03 | 40.47 ▼2.28 | 35.35 ▲0.04 |
Add New Post /wp-admin/post-new.php | 6,259 ▲4,740 | 19.18 ▼3.92 | 966.75 ▲324.85 | 64.52 ▲12.72 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.03 | 95.35 ▼4.71 | 40.29 ▼7.49 |
Smart App Banner /wp-admin/options-general.php?page=wsl-smart-app-banner | 929 | 2.03 | 24.59 | 31.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-app-banner/wsl-smart-app-banner.php:96
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== smart-app-banner ===
)
smart-app-banner/wsl-smart-app-banner.php 92% from 13 tests
"Smart App Banner" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("smart-app-banner.php" instead of "wsl-smart-app-banner.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 detected356 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 83 | 57 | 316 |
PO File | 1 | 12 | 14 | 40 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin