Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.26MB] [CPU: ▼19.73ms] Passed 4 tests
This is a short check of server-side resources used by Official Add to Homescreen
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.42 | 4.62 ▼35.67 |
Dashboard /wp-admin | 3.48 ▲0.10 | 52.54 ▼10.71 |
Posts /wp-admin/edit.php | 3.60 ▲0.20 | 52.55 ▼3.85 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.14 | 84.50 ▼28.69 |
Media Library /wp-admin/upload.php | 3.41 ▲0.14 | 38.84 ▲0.98 |
Add To Homescreen /wp-admin/options-general.php?page=cubiq-add-to-home | 3.45 | 36.96 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cubiq_add_to_home |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Official Add to Homescreen
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▼0.04 | 1.99 ▲0.26 | 45.79 ▲3.02 |
Dashboard /wp-admin | 2,196 ▲16 | 5.61 ▼0.06 | 97.07 ▲8.93 | 43.02 ▲2.86 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.98 ▼0.14 | 34.68 ▼5.02 | 36.68 ▼2.10 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.27 ▼0.28 | 660.84 ▼20.96 | 56.11 ▲2.89 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▼0.04 | 110.40 ▲8.93 | 49.48 ▲0.75 |
Add To Homescreen /wp-admin/options-general.php?page=cubiq-add-to-home | 1,506 | 3.21 | 55.07 | 30.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/official-add-to-homescreen/uninstall.php+24
rmdir(wp-content/uploads/cubiq-add-to-home/): Directory not empty
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cubiq-add-to-home
- > Notice in wp-content/plugins/official-add-to-homescreen/templates/admin.php+120
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cubiq-add-to-home
- > Notice in wp-content/plugins/official-add-to-homescreen/includes/admin.php+369
Undefined index: default
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/official-add-to-homescreen/templates/public.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/official-add-to-homescreen/templates/admin.php:2
- > PHP Notice
Undefined variable: isCompatible in wp-content/plugins/official-add-to-homescreen/templates/public.php on line 1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=cubiq-add-to-home
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught Error: Invalid dimensions for plot, width = 0, height = 300
Optimizations
Plugin configuration 86% from 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
6 plugin tags: mobile, homescreen, home screen, iphone, android...
official-add-to-homescreen/cubiq-add-to-home.php 69% from 13 tests
"Official Add to Homescreen" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 321 characters long)
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("official-add-to-homescreen.php" instead of "cubiq-add-to-home.php")
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
Good job! No executable or dangerous file extensions detected1,169 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 176 | 70 | 793 |
CSS | 1 | 36 | 2 | 216 |
JavaScript | 5 | 36 | 18 | 160 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 26.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 6 | 26.09% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin