Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼298.40ms] Passed 4 tests
An overview of server-side resources used by Add to home screen WP Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▼0.00 | 52.20 ▼0.45 |
Dashboard /wp-admin | 3.47 ▲0.06 | 32.88 ▼0.22 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 37.80 ▲1.17 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 90.24 ▼1,192.07 |
Media Library /wp-admin/upload.php | 3.35 ▲0.06 | 24.88 ▼0.85 |
ATHS Options /wp-admin/options-general.php?page=add_to_home_screen_options | 3.38 | 23.04 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add to home screen WP Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,774 ▲20 | 16.24 ▲0.60 | 6.18 ▼0.30 | 2.32 ▼0.48 |
Dashboard /wp-admin | 2,893 ▲35 | 6.14 ▼0.03 | 115.82 ▼19.01 | 154.41 ▼8.89 |
Posts /wp-admin/edit.php | 2,690 ▲18 | 3.23 ▼0.00 | 63.48 ▼1.88 | 134.72 ▼6.59 |
Add New Post /wp-admin/post-new.php | 1,693 ▲27 | 20.65 ▲1.18 | 433.83 ▲29.66 | 159.38 ▲0.58 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.51 ▲0.04 | 140.64 ▲2.38 | 186.33 ▲2.84 |
ATHS Options /wp-admin/options-general.php?page=add_to_home_screen_options | 2,103 | 7.96 | 192.64 | 400.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=add_to_home_screen_options
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=add_to_home_screen_options
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=add_to_home_screen_options
- > Warning in wp-content/plugins/add-to-home-screen-wp/options.php+127
Use of undefined constant drop - assumed 'drop' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=add_to_home_screen_options
- > Warning in wp-content/plugins/add-to-home-screen-wp/options.php+128
Use of undefined constant bubble - assumed 'bubble' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=add_to_home_screen_options
- > Warning in wp-content/plugins/add-to-home-screen-wp/options.php+129
Use of undefined constant fade - assumed 'fade' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=add_to_home_screen_options
- > Warning in wp-content/plugins/add-to-home-screen-wp/options.php+220
Use of undefined constant homeonly - assumed 'homeonly' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=add_to_home_screen_options
- > Warning in wp-content/plugins/add-to-home-screen-wp/options.php+221
Use of undefined constant allpages - assumed 'allpages' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-to-home-screen-wp/index.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/add-to-home-screen-wp/options.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: Please describe screenshot #6 in add-to-home-screen-wp/assets to your readme.txt
add-to-home-screen-wp/index.php 92% from 13 tests
"Add to home screen WP Plugin" version 1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("add-to-home-screen-wp.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,591 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 3 | 217 | 1,101 | 714 |
PHP | 2 | 30 | 73 | 470 |
JavaScript | 1 | 56 | 16 | 272 |
CSS | 1 | 16 | 40 | 135 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 4 | 100.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
1 PNG file occupies 0.20MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 203.10KB | 57.61KB | ▼ 71.63% |