Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.32MB] [CPU: ▲6.28ms] 75% from 4 tests
A check of server-side resources used by PWA for WP & AMP
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 568.70ms on /wp-admin/admin.php?page=pwaforwp)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.72 | 41.36 ▼0.84 |
Dashboard /wp-admin | 4.83 ▲1.52 | 57.52 ▲7.60 |
Posts /wp-admin/edit.php | 4.88 ▲1.52 | 62.26 ▲10.58 |
Add New Post /wp-admin/post-new.php | 7.43 ▲1.54 | 94.34 ▲7.77 |
Media Library /wp-admin/upload.php | 4.75 ▲1.52 | 46.21 ▲12.34 |
Upgrade To Premium /wp-admin/admin.php?page=javasctipt:void(0); | 4.47 | 34.10 |
Settings /wp-admin/admin.php?page=pwaforwp | 4.87 | 568.70 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- The plugin illegally modified 3 files (40.46KB) outside of "wp-content/plugins/pwa-for-wp/" and "wp-content/uploads/"
- (new file) pwa-register-sw.js
- (new file) pwa-sw.js
- (new file) pwa-manifest.json
Filesystem: 76 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
wisdom_admin_emails |
widget_theysaidso_widget |
pwaforwp_activation_date |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
wisdom_last_track_time |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PWA for WP & AMP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲207 | 14.39 ▼0.01 | 1.64 ▼0.20 | 38.94 ▼5.17 |
Dashboard /wp-admin | 2,356 ▲182 | 5.71 ▲0.07 | 99.64 ▲3.68 | 81.84 ▲37.07 |
Posts /wp-admin/edit.php | 2,285 ▲185 | 2.29 ▲0.35 | 48.37 ▲7.15 | 38.86 ▲3.62 |
Add New Post /wp-admin/post-new.php | 1,630 ▲94 | 23.40 ▲0.11 | 757.81 ▲146.63 | 54.67 ▼6.42 |
Media Library /wp-admin/upload.php | 1,573 ▲173 | 4.31 ▲0.18 | 104.73 ▲6.75 | 61.43 ▲19.43 |
Upgrade To Premium /wp-admin/admin.php?page=javasctipt:void(0); | 28 | 0.41 | 0.08 | 3.91 |
Settings /wp-admin/admin.php?page=pwaforwp | 6,050 | 5.10 | 142.91 | 113.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- wisdom_last_track_time
- pwaforwp_activation_date
- wisdom_admin_emails
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=pwaforwp
- > Warning in wp-content/plugins/pwa-for-wp/admin/settings.php+2770
get_headers(https://wp.com/pwa-sw.js): failed to open stream: Connection refused
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=javasctipt:void(0);
- > Network (severe)
wp-admin/admin.php?page=javasctipt:void(0); - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in pwa-for-wp/assets to your readme.txt
pwa-for-wp/pwa-for-wp.php Passed 13 tests
The principal PHP file in "PWA for WP & AMP" v. 1.7.64 is loaded by WordPress automatically on each request
116 characters long description:
We are bringing the power of the Progressive Web Apps to the WP & AMP to take the user experience to the next level!
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 detected15,141 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 1,173 | 1,907 | 6,331 |
JavaScript | 17 | 512 | 171 | 3,831 |
CSS | 6 | 458 | 65 | 3,494 |
PO File | 2 | 375 | 408 | 887 |
Markdown | 1 | 146 | 0 | 523 |
SVG | 2 | 0 | 0 | 51 |
HTML | 1 | 2 | 0 | 24 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 64.90 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 6.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 7 | 6.60% |
▷ Public methods | 103 | 97.17% |
▷ Protected methods | 3 | 2.83% |
▷ Private methods | 0 | 0.00% |
Functions | 141 | |
▷ Named functions | 135 | 95.74% |
▷ Anonymous functions | 6 | 4.26% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/offline-forms-for-pwa-for-wp.png | 5.51KB | 5.90KB | 0.00% |
images/multilingual-compatibility-for-pwa.png | 5.28KB | 5.54KB | 0.00% |
images/pwa-to-apk-plugin.png | 4.76KB | 4.98KB | 0.00% |
images/offers.png | 19.62KB | 7.99KB | ▼ 59.26% |
images/buddypress-for-pwaforwp.png | 7.39KB | 7.70KB | 0.00% |