Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲1.76MB] [CPU: ▲11.75ms] Passed 4 tests
A check of server-side resources used by WP-AppKit - Mobile apps and PWA for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.20 ▲1.73 | 56.39 ▲9.46 |
Dashboard /wp-admin | 5.14 ▲1.79 | 91.56 ▲28.87 |
Posts /wp-admin/edit.php | 5.17 ▲1.82 | 59.41 ▲12.64 |
Add New Post /wp-admin/post-new.php | 7.65 ▲1.76 | 103.94 ▲10.09 |
Media Library /wp-admin/upload.php | 4.98 ▲1.75 | 51.35 ▲14.80 |
Themes /wp-admin/admin.php?page=wpak_bo_themes | 5.00 | 44.15 |
Upload Themes /wp-admin/admin.php?page=wpak_bo_upload_themes | 4.95 | 41.71 |
Applications /wp-admin/edit.php?post_type=wpak_apps | 5.02 | 44.92 |
Settings /wp-admin/admin.php?page=wpak_bo_settings_page | 4.95 | 41.62 |
Server storage [IO: ▲3.87MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Illegal file modification found: 56 files (1,253.09KB) outside of "wp-content/plugins/wp-appkit/" and "wp-content/uploads/"
- (new file) wp-content/themes-wp-appkit/q-android/archive-favorites.html
- (new file) wp-content/themes-wp-appkit/q-android/css/post-list.css
- (new file) wp-content/themes-wp-appkit/q-android/archive.html
- (new file) wp-content/themes-wp-appkit/q-android/fonts/PT-Serif-Regular.ttf
- (new file) wp-content/themes-wp-appkit/q-android/css/post-detail.css
- (new file) wp-content/themes-wp-appkit/q-android/icons/pwa-icon-192x192.png
- (new file) wp-content/themes-wp-appkit/q-android/head.html
- (new file) wp-content/themes-wp-appkit/q-android/icons/pwa-icon-48x48.png
- (new file) wp-content/themes-wp-appkit/q-android/css/common.css
- (new file) wp-content/themes-wp-appkit/q-android/icons/pwa-icon-144x144.png
- ...
Filesystem: 262 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
wpak_version |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-AppKit - Mobile apps and PWA for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲110 | 13.43 ▼0.95 | 1.71 ▼0.40 | 41.49 ▼0.92 |
Dashboard /wp-admin | 2,284 ▲93 | 5.90 ▲1.01 | 108.70 ▼6.92 | 42.74 ▼0.91 |
Posts /wp-admin/edit.php | 2,168 ▲79 | 2.03 ▼0.01 | 41.01 ▲3.67 | 35.83 ▲0.39 |
Add New Post /wp-admin/post-new.php | 1,565 ▲46 | 23.28 ▲0.14 | 660.72 ▲10.44 | 56.72 ▼3.28 |
Media Library /wp-admin/upload.php | 1,467 ▲79 | 4.26 ▲0.01 | 99.46 ▼0.37 | 40.82 ▼1.29 |
Themes /wp-admin/admin.php?page=wpak_bo_themes | 1,054 | 2.15 | 43.32 | 33.67 |
Upload Themes /wp-admin/admin.php?page=wpak_bo_upload_themes | 882 | 1.73 | 25.51 | 30.06 |
Applications /wp-admin/edit.php?post_type=wpak_apps | 1,142 | 1.96 | 32.38 | 30.96 |
Settings /wp-admin/admin.php?page=wpak_bo_settings_page | 1,070 | 2.06 | 22.77 | 27.18 |
Uninstaller [IO: ▲1.22MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- wpak_version
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 fix the following
- 39× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-appkit/lib/user-permissions/authentication-settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-appkit/lib/themes/themes-bo-settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'WpakThemes' not found in wp-content/plugins/wp-appkit/lib/themes/themes-page-template.php:104
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-appkit/lib/navigation/navigation-bo-settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-appkit/lib/web-services/core-web-services/synchronization.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-appkit/lib/web-services/core-web-services/comments.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-appkit/default-themes/q-ios/php/add-custom-data.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-appkit/lib/components/components-bo-settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-appkit/lib/web-services/core-web-services/live-query.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wp-appkit/wp-cli-commands/wpak-commands.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: pwa, progressive web app, ios, android, phonegap build...
wp-appkit/wp-appkit.php Passed 13 tests
"WP-AppKit - Mobile apps and PWA for WordPress" version 1.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
Build mobile apps and PWA based on your WordPress content.
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 plugin26,016 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 66 | 2,875 | 3,795 | 11,503 |
PHP | 62 | 2,786 | 3,050 | 9,183 |
CSS | 10 | 368 | 230 | 2,501 |
SVG | 14 | 7 | 7 | 1,662 |
PO File | 1 | 283 | 592 | 729 |
HTML | 17 | 167 | 84 | 328 |
Markdown | 2 | 29 | 0 | 110 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 33.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 308.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 529 | |
▷ Static methods | 391 | 73.91% |
▷ Public methods | 371 | 70.13% |
▷ Protected methods | 102 | 19.28% |
▷ Private methods | 56 | 10.59% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 30 | |
▷ Global constants | 1 | 3.33% |
▷ Class constants | 29 | 96.67% |
▷ Public constants | 29 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
69 PNG files occupy 0.43MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons-splashscreens/ios/icons/icon-small.png | 1.34KB | 0.44KB | ▼ 67.18% |
images/icons-splashscreens/ios/splashscreens/Default-736h-Lanscape@3x~iphone.png | 13.88KB | 11.12KB | ▼ 19.89% |
images/icons-splashscreens/android/icon.png | 2.85KB | 1.46KB | ▼ 48.89% |
images/icons-splashscreens/android-cordova/res/android/icons/icon-wp-appkit-xxhdpi.png | 2.85KB | 1.46KB | ▼ 48.89% |
images/icons-splashscreens/android-cordova/res/android/splashscreens/splashscreen-wp-appkit-xxxhdpi.9.png | 21.54KB | 11.40KB | ▼ 47.08% |