Benchmarks
Plugin footprint 65% 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.27MB] [CPU: ▼13.60ms] Passed 4 tests
An overview of server-side resources used by Fusion Web App
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 46.16 ▲6.19 |
Dashboard /wp-admin | 3.78 ▲0.43 | 52.61 ▼8.33 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 55.54 ▲6.33 |
Add New Post /wp-admin/post-new.php | 3.54 ▼2.34 | 41.63 ▼56.41 |
Media Library /wp-admin/upload.php | 3.65 ▲0.43 | 45.09 ▲4.14 |
Screens /wp-admin/admin.php?page=fusion-web-app-screens | 3.58 | 42.78 |
Recipients /wp-admin/admin.php?page=fusion-web-app-recipients | 3.58 | 41.83 |
New Push /wp-admin/admin.php?page=fusion-web-app-send_new | 3.57 | 37.90 |
All Notifications /wp-admin/admin.php?page=fusion-web-app | 3.58 | 39.36 |
Register Screen /wp-admin/admin.php?page=fusion-web-app-register_new_app_screen | 3.57 | 39.74 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_fusion_web_app_screens |
wp_fusion_web_app_recipient_devices |
wp_fusion_web_app_all |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Fusion Web App
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 14.35 ▲0.07 | 2.32 ▲0.73 | 43.33 ▲0.45 |
Dashboard /wp-admin | 2,229 ▲49 | 5.66 ▼0.01 | 95.35 ▲6.51 | 40.44 ▼2.24 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 2.02 ▼0.03 | 37.77 ▲1.52 | 38.59 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,555 ▲9 | 22.62 ▼0.78 | 691.14 ▲18.99 | 60.49 ▲3.90 |
Media Library /wp-admin/upload.php | 1,437 ▲40 | 4.24 ▼0.04 | 112.99 ▲4.26 | 49.26 ▲1.95 |
Screens /wp-admin/admin.php?page=fusion-web-app-screens | 1,010 | 2.03 | 28.01 | 29.93 |
Recipients /wp-admin/admin.php?page=fusion-web-app-recipients | 970 | 2.06 | 25.51 | 29.53 |
New Push /wp-admin/admin.php?page=fusion-web-app-send_new | 892 | 2.17 | 27.28 | 27.86 |
All Notifications /wp-admin/admin.php?page=fusion-web-app | 999 | 2.06 | 28.80 | 31.48 |
Register Screen /wp-admin/admin.php?page=fusion-web-app-register_new_app_screen | 894 | 2.17 | 23.13 | 27.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 3 tables
- wp_fusion_web_app_recipient_devices
- wp_fusion_web_app_screens
- wp_fusion_web_app_all
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fusion-web-app/templates/edit_app_screen.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fusion-web-app/templates/send_push.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fusion-web-app/templates/list-app-screens.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fusion-web-app/templates/list-all.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fusion-web-app/templates/list-recipients.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fusion-web-app/templates/register_app_screen.php:2
- > PHP Warning
Use of undefined constant FUSION_WA_ASSETS - assumed 'FUSION_WA_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/fusion-web-app/templates/list-all.php on line 2
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== fusion-web-app ===
)
fusion-web-app/index.php 92% from 13 tests
The principal PHP file in "Fusion Web App" v. 1.0.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("fusion-web-app.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,078 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 247 | 637 | 1,692 |
PO File | 2 | 148 | 0 | 382 |
JavaScript | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 34.80 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 99 | |
▷ Static methods | 15 | 15.15% |
▷ Public methods | 79 | 79.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 20.20% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-fwa.png | 34.89KB | 14.95KB | ▼ 57.15% |