Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/wp-smartbanner/class-wp-smartbanner.php+118
Use of undefined constant ACF_BASENAME - assumed 'ACF_BASENAME' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.88MB] [CPU: ▼54.34ms] Passed 4 tests
Analyzing server-side resources used by WP Smart Banner
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 6.14 ▼34.74 |
Dashboard /wp-admin | 2.12 ▼1.18 | 6.48 ▼41.13 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 7.16 ▼43.32 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 6.13 ▼98.17 |
Media Library /wp-admin/upload.php | 2.12 ▼1.10 | 7.63 ▼28.25 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Smart Banner
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.29 ▼1.17 | 3.40 ▲1.49 | 48.39 ▲8.38 |
Dashboard /wp-admin | 2,225 ▲33 | 4.85 ▼0.08 | 111.53 ▼1.56 | 42.18 ▲0.52 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.01 ▼0.03 | 34.43 ▼3.57 | 32.23 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 17.69 ▼5.54 | 690.18 ▲20.65 | 66.30 ▲15.70 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.23 ▲0.03 | 98.44 ▼2.24 | 41.07 ▼7.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/wp-smartbanner/class-wp-smartbanner.php+118
Use of undefined constant ACF_BASENAME - assumed 'ACF_BASENAME' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Smartbanner' not found in wp-content/plugins/wp-smartbanner/includes/admin/class-wp-smartbanner-options.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: android, banner, ios, mobile
wp-smartbanner/wp-smartbanner.php Passed 13 tests
The primary PHP file in "WP Smart Banner" version 1.0.1 is used by WordPress to initiate all plugin functionality
62 characters long description:
A customisable WordPress smart app banner for iOS and Android.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,084 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 110 | 437 | 505 |
JavaScript | 4 | 95 | 2 | 452 |
CSS | 2 | 1 | 1 | 127 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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.46MB with 0.41MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 233.83KB | 26.36KB | ▼ 88.73% |
assets/screenshot-1.png | 235.10KB | 21.98KB | ▼ 90.65% |