Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.81MB] [CPU: ▲0.93ms] Passed 4 tests
Server-side resources used by PWA — easy way to Progressive Web App
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 48.46 ▲8.27 |
Dashboard /wp-admin | 4.16 ▲0.82 | 54.74 ▼6.81 |
Posts /wp-admin/edit.php | 4.21 ▲0.85 | 57.06 ▲11.67 |
Add New Post /wp-admin/post-new.php | 6.76 ▲0.88 | 87.20 ▼7.18 |
Media Library /wp-admin/upload.php | 4.09 ▲0.86 | 42.30 ▲9.45 |
PWA /wp-admin/options-general.php?page=iworks_pwa_index | 4.19 | 68.37 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 84 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
iworks_pwa_check_urls_error |
iworks_pwa_meta_viewport |
widget_recent-comments |
Browser metrics Passed 4 tests
PWA — easy way to Progressive Web App: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲160 | 14.49 ▲0.14 | 1.75 ▲0.03 | 39.51 ▼3.86 |
Dashboard /wp-admin | 2,256 ▲75 | 5.65 ▼0.06 | 96.51 ▼15.31 | 44.28 ▼4.29 |
Posts /wp-admin/edit.php | 2,167 ▲64 | 2.30 ▲0.34 | 49.79 ▲9.88 | 32.71 ▼4.12 |
Add New Post /wp-admin/post-new.php | 1,577 ▲42 | 23.33 ▼1.81 | 654.73 ▲38.61 | 36.64 ▼29.70 |
Media Library /wp-admin/upload.php | 1,467 ▲67 | 4.30 ▲0.11 | 105.88 ▲9.80 | 47.51 ▲3.01 |
PWA /wp-admin/options-general.php?page=iworks_pwa_index | 2,305 | 4.77 | 103.95 | 78.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- iworks_pwa_check_urls_error
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- iworks_pwa_meta_viewport
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'iWorks_PWA_Integrations' not found in wp-content/plugins/iworks-pwa/includes/iworks/pwa/integrations/class-iworks-pwa-integrations-menu-icons.php:8
- > PHP Fatal error
Uncaught Error: Class 'iWorks_PWA_Integrations' not found in wp-content/plugins/iworks-pwa/includes/iworks/pwa/integrations/class-iworks-pwa-integrations-og.php:8
- > PHP Fatal error
Uncaught Error: Class 'iWorks_PWA_Integrations' not found in wp-content/plugins/iworks-pwa/includes/iworks/pwa/integrations/class-iworks-pwa-integrations-wpml.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/iworks-pwa/assets/templates/no-ssl.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5, #6 in iworks-pwa/assets to your readme.txt
iworks-pwa/iworks-pwa.php Passed 13 tests
Analyzing the main PHP file in "PWA — easy way to Progressive Web App" version 1.5.7
45 characters long description:
Your easy way to Progressive Web Application.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin5,183 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 298 | 1,336 | 4,361 |
JavaScript | 9 | 54 | 116 | 442 |
CSS | 7 | 24 | 9 | 193 |
Sass | 1 | 8 | 0 | 138 |
HTML | 1 | 0 | 0 | 36 |
SVG | 3 | 0 | 0 | 11 |
XML | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 193)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 46.64 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 392.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 193.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 194 | |
▷ Static methods | 1 | 0.52% |
▷ Public methods | 119 | 61.34% |
▷ Protected methods | 22 | 11.34% |
▷ Private methods | 53 | 27.32% |
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
32 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/iworks/options/assets/styles/images/ui-icons_ffffff_256x240.png | 3.54KB | 3.86KB | 0.00% |
assets/images/icons/favicon/android-icon-72x72.png | 1.72KB | 1.73KB | 0.00% |
assets/images/icons/favicon/ms-icon-70x70.png | 1.64KB | 1.65KB | 0.00% |
assets/images/icons/favicon/favicon-16x16.png | 0.43KB | 0.44KB | 0.00% |
assets/images/icons/favicon/apple-icon-60x60.png | 1.42KB | 1.43KB | 0.00% |