Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.51MB] [CPU: ▲3.72ms] Passed 4 tests
An overview of server-side resources used by Mobile App Canvas Plugin - Convert your Website Into an App for iOS and Android
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 40.13 ▲0.71 |
Dashboard /wp-admin | 3.89 ▲0.59 | 52.57 ▲7.58 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 56.52 ▲8.72 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 99.96 ▼2.12 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 44.66 ▲11.69 |
Server storage [IO: ▲9.98MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 127 new files
Database: 1 new table, 18 new options
New tables |
---|
wp_canvas_notifications |
New WordPress options |
---|
canvas-generated-existing-login-html-template-complete |
widget_recent-posts |
canvas-generated-existing-registration-html-template-complete |
canvas-api_version |
can_compress_scripts |
widget_theysaidso_widget |
canvas-generated-existing-registration-html-template |
canvas-generated-existing-login-html-template |
canvas-ps_mentions_posts |
canvas-generated-existing-css-template-complete |
... |
Browser metrics Passed 4 tests
Mobile App Canvas Plugin - Convert your Website Into an App for iOS and Android: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲237 | 13.91 ▼0.38 | 1.75 ▼0.25 | 41.43 ▼3.45 |
Dashboard /wp-admin | 2,403 ▲212 | 5.14 ▲0.17 | 102.38 ▲1.81 | 83.44 ▲37.30 |
Posts /wp-admin/edit.php | 2,290 ▲204 | 2.30 ▲0.25 | 40.89 ▲1.52 | 39.51 ▲3.79 |
Add New Post /wp-admin/post-new.php | 1,568 ▲34 | 23.72 ▲0.58 | 681.28 ▲53.30 | 48.12 ▼10.30 |
Media Library /wp-admin/upload.php | 1,576 ▲191 | 4.52 ▲0.35 | 101.08 ▲0.72 | 81.88 ▲39.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_canvas_notifications
- The uninstall procedure has failed, leaving 18 options in the database
- can_compress_scripts
- canvas-generated-existing-registration-html-template
- canvas-generated-existing-registration-html-template-complete
- canvas-ps_friends
- canvas-ps_mentions_comments
- canvas-generated-existing-css-template
- widget_recent-posts
- canvas-generated-existing-css-template-complete
- db_upgraded
- widget_theysaidso_widget
- ...
Smoke tests 50% 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 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
Please fix the following
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/mobile-app/views/header.php
- > /wp-content/plugins/mobile-app/api/registration.php
- > /wp-content/plugins/mobile-app/views/footer.php
- > /wp-content/plugins/mobile-app/api/forgot-password.php
- > /wp-content/plugins/mobile-app/api/login.php
- > /wp-content/plugins/mobile-app/views/login-registration/parts/loading-icon.php
- 27× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require(CANVAS_DIRviews/login-registration/parts/loading-icon.php): failed to open stream: No such file or directory in wp-content/plugins/mobile-app/views/login-registration/registration-template.php on line 5
- > PHP Fatal error
require(): Failed opening required 'CANVAS_DIRviews/login-registration/parts/loading-icon.php' (include_path='.:/usr/share/php') in wp-content/plugins/mobile-app/views/login-registration/login-template.php on line 5
- > PHP Warning
Use of undefined constant CANVAS_DIR - assumed 'CANVAS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mobile-app/api/loginstate.php on line 7
- > PHP Fatal error
require(): Failed opening required 'CANVAS_DIRviews/login-registration/parts/loading-icon.php' (include_path='.:/usr/share/php') in wp-content/plugins/mobile-app/views/login-registration/registration-template.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mobile-app/views/settings-push.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mobile-app/views/login-registration/footer.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-app/core/canvas_woo.class.php:51
- > PHP Fatal error
Uncaught Error: Class 'CanvasAdmin' not found in wp-content/plugins/mobile-app/views/first_time.php:2
- > PHP Fatal error
require_once(): Failed opening required 'CANVAS_DIRcore/canvas_theme.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/mobile-app/api/loginstate.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mobile-app/views/settings-canvas-login-registration.php:4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
mobile-app/canvas.php 85% from 13 tests
The main PHP script in "Mobile App Canvas Plugin - Convert your Website Into an App for iOS and Android" version 3.5.11 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("mobile-app.php" instead of "canvas.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin89,795 lines of code in 97 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 24 | 3,306 | 6,298 | 28,630 |
JSON | 2 | 0 | 0 | 27,983 |
JavaScript | 13 | 5,570 | 12,614 | 21,040 |
SVG | 8 | 0 | 4 | 7,029 |
PHP | 45 | 732 | 1,070 | 4,412 |
TypeScript | 1 | 80 | 840 | 373 |
Sass | 4 | 57 | 0 | 328 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 25.42 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 163 | |
▷ Static methods | 114 | 69.94% |
▷ Public methods | 138 | 84.66% |
▷ Protected methods | 6 | 3.68% |
▷ Private methods | 19 | 11.66% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/libs/chosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
assets/libs/chosen/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
assets/img/welcome.png | 25.03KB | 11.72KB | ▼ 53.19% |
assets/img/link.png | 0.34KB | 0.48KB | 0.00% |
assets/img/list.png | 0.43KB | 0.47KB | 0.00% |