Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.06MB] [CPU: ▲3.54ms] Passed 4 tests
Server-side resources used by IoPlus Contact Tracing Solution
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.50 ▲1.04 | 45.61 ▲1.53 |
Dashboard /wp-admin | 4.35 ▲1.04 | 51.94 ▲4.85 |
Posts /wp-admin/edit.php | 4.46 ▲1.10 | 59.45 ▲8.97 |
Add New Post /wp-admin/post-new.php | 7.21 ▲1.32 | 95.32 ▼1.18 |
Media Library /wp-admin/upload.php | 4.27 ▲1.04 | 44.41 ▲11.25 |
Visitor /wp-admin/edit.php?post_type=io_plus_visitor | 4.31 | 41.37 |
Dashboard /wp-admin/plugins.php?page=meta-box | 4.26 | 41.12 |
IO Plus /wp-admin/admin.php?page=io_plus | 4.23 | 176.02 |
Question /wp-admin/edit.php?post_type=io_plus_question | 4.31 | 42.31 |
Business /wp-admin/edit.php?post_type=io_plus_business | 4.31 | 42.13 |
Employee /wp-admin/edit.php?post_type=io_plus_employee | 4.31 | 41.24 |
Server storage [IO: ▲10.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 813 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for IoPlus Contact Tracing Solution
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲128 | 13.73 ▼0.85 | 1.71 ▼0.39 | 41.99 ▼5.34 |
Dashboard /wp-admin | 2,257 ▲69 | 5.89 ▲0.81 | 106.01 ▼6.68 | 39.00 ▼9.36 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.03 ▲0.03 | 39.46 ▼3.43 | 34.89 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 23.29 ▲0.23 | 605.49 ▼31.70 | 67.09 ▲18.73 |
Media Library /wp-admin/upload.php | 1,436 ▲51 | 4.24 ▲0.07 | 97.87 ▼5.43 | 43.14 ▲1.08 |
Visitor /wp-admin/edit.php?post_type=io_plus_visitor | 1,113 | 1.96 | 32.24 | 30.14 |
Dashboard /wp-admin/plugins.php?page=meta-box | 1,361 | 2.06 | 25.69 | 47.56 |
IO Plus /wp-admin/admin.php?page=io_plus | 723 | 1.53 | 7.52 | 17.40 |
Question /wp-admin/edit.php?post_type=io_plus_question | 1,113 | 1.95 | 32.86 | 30.19 |
Business /wp-admin/edit.php?post_type=io_plus_business | 1,095 | 1.96 | 39.92 | 28.86 |
Employee /wp-admin/edit.php?post_type=io_plus_employee | 1,110 | 1.98 | 30.79 | 29.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=io_plus
- > Error in wp-content/plugins/io-plus/src/query.php+86
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/io-plus/src/query.php:86
Stack trace:
#0 wp-content/plugins/io-plus/src/query.php(30): IO_Plus\Query->Request()
#1 wp-content/plugins/io-plus/src/admin.php(62): IO_Plus\Query->activate()
#2 wp-includes/class-wp-hook.php(310): IO_Plus\Admin->settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 13× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/io-plus/vendor/fpdf/fpdf/original/tutorial/tuto5.php
- > /wp-content/plugins/io-plus/vendor/rilwis/meta-box/inc/templates/audio.php
- > /wp-content/plugins/io-plus/vendor/fpdf/fpdf/original/tutorial/tuto7.php
- > /wp-content/plugins/io-plus/vendor/rilwis/meta-box/inc/templates/video.php
- > /wp-content/plugins/io-plus/vendor/fpdf/fpdf/original/tutorial/tuto4.php
- > /wp-content/plugins/io-plus/vendor/fpdf/fpdf/original/tutorial/makefont.php
- > /wp-content/plugins/io-plus/vendor/fpdf/fpdf/original/tutorial/tuto1.php
- > /wp-content/plugins/io-plus/vendor/fpdf/fpdf/original/tutorial/tuto3.php
- > /wp-content/plugins/io-plus/vendor/fpdf/fpdf/original/tutorial/tuto2.php
- > /wp-content/plugins/io-plus/vendor/rilwis/meta-box/inc/templates/media.php
- 252× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCodeTest\\Data\\DatainterfaceTestAbstract' not found in wp-content/plugins/io-plus/vendor/chillerlan/php-qrcode/tests/Data/KanjiTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/io-plus/vendor/rilwis/meta-box/inc/fields/button.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/io-plus/vendor/rilwis/meta-box/inc/fields/image-select.php:11
- > PHP Warning
include(): Failed opening 'vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/io-plus/vendor/hybridauth/hybridauth/examples/example_01.php on line 27
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\AbstractAdapter' not found in wp-content/plugins/io-plus/vendor/hybridauth/hybridauth/src/Adapter/OAuth2.php:24
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Number_Field' not found in wp-content/plugins/io-plus/vendor/rilwis/meta-box/inc/fields/range.php:11
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Thirdparty\\OAuth\\OAuthSignatureMethod' not found in wp-content/plugins/io-plus/vendor/hybridauth/hybridauth/src/Thirdparty/OAuth/OAuthSignatureMethodHMACSHA1.php:15
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Select_Field' not found in wp-content/plugins/io-plus/vendor/rilwis/meta-box/inc/fields/select-advanced.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/io-plus/vendor/rilwis/meta-box/inc/fields/switch.php:11
- > PHP Fatal error
require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/io-plus/vendor/chillerlan/php-qrcode/public/qrcode.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: covid-19 health-screening questionnaire, staff covid-19 contact tracing, business qr generator, visitor and employee health screening checklist, fit for work screening...
io-plus/plugin.php 92% from 13 tests
Analyzing the main PHP file in "IoPlus Contact Tracing Solution" version 1.0.0
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("io-plus.php" instead of "plugin.php")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin63,645 lines of code in 664 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 398 | 9,775 | 24,872 | 47,079 |
CSS | 46 | 864 | 273 | 5,834 |
JavaScript | 102 | 1,070 | 673 | 3,934 |
HTML | 61 | 98 | 0 | 3,378 |
PO File | 11 | 514 | 567 | 1,384 |
Markdown | 21 | 320 | 0 | 988 |
JSON | 8 | 0 | 0 | 744 |
XML | 7 | 2 | 1 | 152 |
YAML | 8 | 27 | 3 | 134 |
Bourne Shell | 1 | 4 | 0 | 13 |
SVG | 1 | 0 | 0 | 5 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 21.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 632.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 44 | |
Interfaces | 9 | |
Traits | 5 | |
Classes | 294 | |
▷ Abstract classes | 21 | 7.14% |
▷ Concrete classes | 273 | 92.86% |
▷ Final classes | 5 | 1.83% |
Methods | 2,141 | |
▷ Static methods | 334 | 15.60% |
▷ Public methods | 1,798 | 83.98% |
▷ Protected methods | 289 | 13.50% |
▷ Private methods | 54 | 2.52% |
Functions | 73 | |
▷ Named functions | 54 | 73.97% |
▷ Anonymous functions | 19 | 26.03% |
Constants | 264 | |
▷ Global constants | 42 | 15.91% |
▷ Class constants | 222 | 84.09% |
▷ Public constants | 214 | 96.40% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
24 PNG files occupy 0.36MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/rilwis/meta-box/inc/about/images/online-generator.png | 10.94KB | 11.03KB | 0.00% |
assets/img/success.png | 14.51KB | 4.97KB | ▼ 65.75% |
vendor/rilwis/meta-box/img/jqueryui/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
vendor/rilwis/meta-box/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
assets/img/email_logo_white.png | 74.88KB | 39.66KB | ▼ 47.03% |