Benchmarks
Plugin footprint 82% from 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.01MB] [CPU: ▼12.93ms] Passed 4 tests
Server-side resources used by GDC PWA
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 23.65 ▼15.15 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.02 ▼7.62 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.67 ▼3.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.58 ▼25.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.73 ▼0.13 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- You have illegally modified 2 files (0.61KB) outside of "wp-content/plugins/gdc-pwa/" and "wp-content/uploads/"
- (new file) service-worker.js
- (new file) manifest.json
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for GDC PWA
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲109 | 13.25 ▼1.06 | 3.91 ▲2.05 | 44.76 ▲3.04 |
Dashboard /wp-admin | 2,237 ▲31 | 5.88 ▲0.98 | 107.91 ▼1.57 | 43.54 ▲0.46 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 2.02 ▲0.02 | 41.99 ▲0.91 | 38.12 ▲2.42 |
Add New Post /wp-admin/post-new.php | 1,558 ▲13 | 23.07 ▼0.08 | 642.36 ▼67.14 | 62.03 ▲8.99 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.17 ▼0.06 | 96.20 ▼10.54 | 44.76 ▼2.96 |
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
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: progressive web apps, pwa
gdc-pwa/gdc-pwa.php Passed 13 tests
"GDC PWA" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
51 characters long description:
Habilita la instalación de paginas web progressive
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
Success! There were no dangerous files found in this plugin176 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 15 | 101 |
JavaScript | 3 | 8 | 5 | 40 |
JSON | 1 | 0 | 0 | 20 |
CSS | 1 | 2 | 0 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 6.64KB | 3.42KB | ▼ 48.54% |