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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.68MB] [CPU: ▲2.27ms] Passed 4 tests
Analyzing server-side resources used by Super Progressive Web Apps
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.17 ▲0.70 | 40.12 ▼0.91 |
Dashboard /wp-admin | 4.03 ▲0.72 | 58.69 ▲6.35 |
Posts /wp-admin/edit.php | 4.08 ▲0.71 | 54.75 ▲6.87 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 100.84 ▼3.23 |
Media Library /wp-admin/upload.php | 3.89 ▲0.65 | 45.93 ▲14.21 |
Settings /wp-admin/admin.php?page=superpwa | 3.98 | 47.62 |
Add-ons /wp-admin/admin.php?page=superpwa-addons | 3.88 | 51.20 |
Upgrade to Pro /wp-admin/admin.php?page=superpwa-upgrade | 3.88 | 42.00 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- Illegal file modification found: 2 files (5.80KB) outside of "wp-content/plugins/super-progressive-web-apps/" and "wp-content/uploads/"
- (new file) superpwa-manifest.json
- (new file) superpwa-sw.js
Filesystem: 79 new files
Database: no new tables, 9 new options
New WordPress options |
---|
superpwa_version |
superpwa_settings |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
superpwa_hide_newsletter |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Super Progressive Web Apps
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲176 | 14.22 ▼0.05 | 1.81 ▲0.04 | 29.59 ▼14.77 |
Dashboard /wp-admin | 2,315 ▲134 | 5.72 ▲0.04 | 92.58 ▼21.96 | 93.39 ▲46.84 |
Posts /wp-admin/edit.php | 2,221 ▲121 | 2.01 ▲0.03 | 39.37 ▲0.98 | 36.43 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,641 ▲105 | 23.17 ▼0.04 | 727.95 ▲104.33 | 51.73 ▼1.55 |
Media Library /wp-admin/upload.php | 1,515 ▲118 | 4.34 ▲0.17 | 99.32 ▼0.58 | 72.22 ▲26.10 |
Settings /wp-admin/admin.php?page=superpwa | 2,394 | 4.44 | 89.34 | 110.30 |
Add-ons /wp-admin/admin.php?page=superpwa-addons | 1,656 | 3.37 | 52.58 | 84.17 |
Upgrade to Pro /wp-admin/admin.php?page=superpwa-upgrade | 1,715 | 3.39 | 47.37 | 140.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- superpwa_hide_newsletter
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(SUPERPWA_PATH_ABSfunctions/wp_dropdown_posts.php): failed to open stream: No such file or directory in wp-content/plugins/super-progressive-web-apps/admin/admin-ui-render-settings.php on line 28
- > PHP Warning
Use of undefined constant SUPERPWA_PATH_ABS - assumed 'SUPERPWA_PATH_ABS' (this will throw an Error in a future version of PHP) in wp-content/plugins/super-progressive-web-apps/admin/admin-ui-render-settings.php on line 28
- > PHP Fatal error
require_once(): Failed opening required 'SUPERPWA_PATH_ABSfunctions/wp_dropdown_posts.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-progressive-web-apps/admin/admin-ui-render-settings.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/super-progressive-web-apps/admin/deactivate-feedback.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/super-progressive-web-apps/3rd-party/yandex.php:12
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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
8 plugin tags: chrome app, web manifest, add to homescreen, manifest, progressive web apps...
super-progressive-web-apps/superpwa.php 92% from 13 tests
The main PHP file in "Super Progressive Web Apps" ver. 2.2.22 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-progressive-web-apps.php" instead of "superpwa.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin6,060 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 1,196 | 2,260 | 4,270 |
JavaScript | 8 | 105 | 101 | 865 |
CSS | 3 | 84 | 5 | 565 |
PO File | 1 | 83 | 89 | 308 |
JSON | 1 | 0 | 0 | 27 |
XML | 2 | 1 | 0 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 188 | |
▷ Named functions | 187 | 99.47% |
▷ Anonymous functions | 1 | 0.53% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
21 PNG files occupy 0.17MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/qr-code.png | 9.45KB | 6.54KB | ▼ 30.84% |
admin/img/superpwa-menu-icon.png | 1.08KB | 1.07KB | ▼ 0.63% |
admin/img/superpwa-128x128.png | 11.91KB | 4.98KB | ▼ 58.14% |
admin/img/app-shortcut.png | 2.98KB | 3.07KB | 0.00% |
admin/img/email.png | 6.82KB | 3.88KB | ▼ 43.05% |