Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.83MB] [CPU: ▲12.54ms] 75% from 4 tests
This is a short check of server-side resources used by WPtouch - Make your WordPress Website Mobile-Friendly
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 694.68ms on /wp-admin/admin.php?page=wptouch-admin-general-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.29 ▲1.83 | 55.19 ▲16.54 |
Dashboard /wp-admin | 5.18 ▲1.87 | 60.81 ▲12.19 |
Posts /wp-admin/edit.php | 5.23 ▲1.87 | 58.89 ▲10.61 |
Add New Post /wp-admin/post-new.php | 7.69 ▲1.81 | 105.73 ▲10.81 |
Media Library /wp-admin/upload.php | 5.03 ▲1.80 | 58.44 ▲25.61 |
Upgrade to Pro /wp-admin/admin.php?page=wptouch-admin-go-pro | 5.12 | 50.82 |
Settings /wp-admin/admin.php?page=wptouch-admin-general-settings | 5.77 | 694.68 |
Server storage [IO: ▲6.39MB] [DB: ▲0.06MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- Illegal file modification detected: 10 files (0.00KB) outside of "wp-content/plugins/wptouch/" and "wp-content/uploads/"
- (new file) wp-content/wptouch-data/lang/.empty
- (new file) wp-content/wptouch-data/uploads/.empty
- (new file) wp-content/wptouch-data/extensions/.empty
- (new file) wp-content/wptouch-data/themes/.empty
- (new file) wp-content/wptouch-data/backups/.empty
- (new file) wp-content/wptouch-data/modules/.empty
- (new file) wp-content/wptouch-data/temp/.empty
- (new file) wp-content/wptouch-data/icons/custom/.empty
- (new file) wp-content/wptouch-data/debug/.empty
- (new file) wp-content/wptouch-data/cache/.empty
Filesystem: 484 new files
Database: no new tables, 12 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
wptouch_customizer_initialized_bauhaus |
theme_mods_bauhaus |
wptouch_menus_initialized |
wpts_wptouch_pro |
wpts_bncid |
widget_theysaidso_widget |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPtouch - Make your WordPress Website Mobile-Friendly
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲93 | 14.29 ▼0.06 | 1.97 ▲0.31 | 41.93 ▼2.87 |
Dashboard /wp-admin | 2,238 ▲58 | 5.67 ▼0.01 | 88.50 ▼2.72 | 82.95 ▲40.10 |
Posts /wp-admin/edit.php | 2,159 ▲56 | 2.05 ▲0.09 | 40.70 ▲4.36 | 39.49 ▲3.32 |
Add New Post /wp-admin/post-new.php | 1,731 ▲202 | 22.23 ▼0.71 | 748.16 ▲86.85 | 64.43 ▲10.84 |
Media Library /wp-admin/upload.php | 1,455 ▲64 | 4.27 ▲0.10 | 98.89 ▼2.44 | 45.63 ▲3.69 |
Upgrade to Pro /wp-admin/admin.php?page=wptouch-admin-go-pro | 1,209 | 2.54 | 71.96 | 122.76 |
Settings /wp-admin/admin.php?page=wptouch-admin-general-settings | 5,183 | 4.77 | 173.02 | 107.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 12 options
- wptouch_customizer_options_foundation
- widget_recent-posts
- wpts_wptouch_pro
- widget_recent-comments
- theysaidso_admin_options
- wptouch_menus_initialized
- widget_theysaidso_widget
- db_upgraded
- wptouch_customizer_initialized_bauhaus
- theme_mods_bauhaus
- ...
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wptouch/themes/bauhaus/default/footer-top.php
- > /wp-content/plugins/wptouch/include/html/pro.php
- > /wp-content/plugins/wptouch/admin/settings/html/sites.php
- > /wp-content/plugins/wptouch/admin/settings/html/free-newsletter-signup.php
- 171× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant WPTOUCH_DIR - assumed 'WPTOUCH_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wptouch/themes/foundation/root-functions.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wptouch/admin/settings/html/redirect.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wptouch_have_icon_packs() in wp-content/plugins/wptouch/admin/settings/html/installed_icon_sets_ajax.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wptouch_admin_the_setting_desc() in wp-content/plugins/wptouch/admin/settings/include/sites.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wptouch/themes/foundation/modules/login/login-html.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptouch/themes/bauhaus/default/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wptouch/themes/bauhaus/default/404.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wptouch/themes/foundation/default/formerror.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wptouch_admin_the_setting_name() in wp-content/plugins/wptouch/admin/settings/html/image-upload.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function foundation_get_settings() in wp-content/plugins/wptouch/admin/settings/include/custom-latest-posts.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wptouch/wptouch.php 92% from 13 tests
Analyzing the main PHP file in "WPtouch - Make your WordPress Website Mobile-Friendly" version 4.3.56
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin44,467 lines of code in 321 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 179 | 3,630 | 830 | 16,596 |
CSS | 58 | 2,525 | 799 | 13,533 |
JavaScript | 72 | 2,145 | 2,519 | 8,878 |
PO File | 1 | 1,175 | 1,956 | 1,905 |
HTML | 4 | 17 | 0 | 1,486 |
JSON | 3 | 0 | 0 | 1,440 |
SVG | 4 | 36 | 0 | 629 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 35.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 529.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 251 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 231 | 92.03% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 7.97% |
Functions | 668 | |
▷ Named functions | 668 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 110 | |
▷ Global constants | 110 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
70 PNG files occupy 0.49MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/icons/elegant/Exclamation.png | 2.55KB | 2.08KB | ▼ 18.61% |
resources/icons/elegant/rss.png | 5.28KB | 3.06KB | ▼ 42.00% |
admin/images/icon-sets/thumbnails/project.png | 2.75KB | 1.91KB | ▼ 30.55% |
admin/images/wptouch-admin-icon-xmas.png | 0.28KB | 0.31KB | 0.00% |
admin/images/default-bookmark.png | 7.99KB | 8.54KB | 0.00% |