Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > User error in wp-content/plugins/tenkinetic-medic/TkMedic.php+207
Could not create account: Could not create account: Could not resolve host: tenkinetic.com
Server metrics [RAM: ▲0.47MB] [CPU: ▼2.13ms] Passed 4 tests
Analyzing server-side resources used by tenKinetic Medic
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 41.36 ▼0.92 |
Dashboard /wp-admin | 3.81 ▲0.51 | 50.68 ▼2.27 |
Posts /wp-admin/edit.php | 3.86 ▲0.51 | 50.70 ▲2.44 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 88.73 ▼7.79 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 42.68 ▲9.42 |
Support /wp-admin/admin.php?page=tk-wpm-support | 3.64 | 34.89 |
Overview /wp-admin/admin.php?page=tk-wpm | 3.66 | 38.53 |
Usage /wp-admin/admin.php?page=tk-wpm-usage | 3.64 | 35.32 |
Activity Log /wp-admin/admin.php?page=tk-wpm-activity | 3.64 | 37.35 |
Server storage [IO: ▲0.55MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 58 new files
Database: 6 new tables, 13 new options
New tables |
---|
tk_wpm_patch |
tk_wpm_patch_page |
tk_wpm_account |
tk_wpm_job |
tk_wpm_message |
tk_wpm_parameter |
New WordPress options |
---|
tk_wpm_patch_sync |
widget_recent-posts |
tk_wpm_db_username |
theysaidso_admin_options |
tk_wpm_db_name |
db_upgraded |
widget_theysaidso_widget |
tk_wpm_db_password |
tk_wpm_db_version |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
tenKinetic Medic: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲111 | 13.25 ▼1.34 | 5.04 ▲3.02 | 41.14 ▼7.04 |
Dashboard /wp-admin | 2,237 ▲49 | 6.03 ▲1.13 | 96.23 ▼18.35 | 76.45 ▲29.64 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.07 ▲0.07 | 34.56 ▼3.50 | 36.78 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,551 ▲8 | 23.25 ▲5.04 | 688.20 ▲2.14 | 38.27 ▼25.59 |
Media Library /wp-admin/upload.php | 1,434 ▲43 | 4.27 ▲0.08 | 112.25 ▲8.75 | 44.70 ▲2.46 |
Support /wp-admin/admin.php?page=tk-wpm-support | 845 | 1.73 | 24.97 | 27.02 |
Overview /wp-admin/admin.php?page=tk-wpm | 1,014 | 2.18 | 28.33 | 34.83 |
Usage /wp-admin/admin.php?page=tk-wpm-usage | 1,049 | 1.72 | 25.10 | 29.32 |
Activity Log /wp-admin/admin.php?page=tk-wpm-activity | 913 | 2.12 | 38.43 | 30.12 |
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 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tk-wpm
- > Notice in wp-content/plugins/tenkinetic-medic/Classes/TkMedicAdminPages.php+140
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=tk-wpm
- > Warning in wp-content/plugins/tenkinetic-medic/Classes/TkMedicAdminPages.php+968
Illegal string offset 'success'
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tk-wpm
- > Warning in wp-content/plugins/tenkinetic-medic/Classes/TkMedicAdminPages.php+992
Illegal string offset 'account'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tk-wpm
- > Warning in wp-content/plugins/tenkinetic-medic/Classes/TkMedicAdminPages.php+992
Illegal string offset 'verified'
- > GET request to /wp-admin/admin.php?page=tk-wpm
- > Warning in wp-content/plugins/tenkinetic-medic/Classes/TkMedicAdminPages.php+996
Illegal string offset 'migration-data'
- > GET request to /wp-admin/admin.php?page=tk-wpm
- > Warning in wp-content/plugins/tenkinetic-medic/Classes/TkMedicAdminPages.php+174
Invalid argument supplied for foreach()
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function db_version() on null in wp-content/plugins/tenkinetic-medic/TkMedic.php:472
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=tk-wpm
- > Network (severe)
http://tenkinetic.com/wordpress-medic/api/system-status/ - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: help, css, assistance, fixes, javascript...
tenkinetic-medic/TkMedic.php 77% from 13 tests
This is the main PHP file of "tenKinetic Medic" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/lang")
- 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tenkinetic-medic.php" instead of "TkMedic.php")
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
Good job! No executable or dangerous file extensions detected4,650 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 301 | 241 | 3,164 |
JavaScript | 3 | 219 | 194 | 1,296 |
CSS | 3 | 61 | 38 | 190 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 20.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 5 | 45.45% |
▷ Concrete classes | 6 | 54.55% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 19 | 32.20% |
▷ Public methods | 46 | 77.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 22.03% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 20 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 20 | 100.00% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
45 PNG files occupy 0.28MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Images/icon-minus.png | 0.36KB | 0.36KB | 0.00% |
Images/icon-close.png | 6.94KB | 0.59KB | ▼ 91.47% |
Images/icon-save.png | 6.87KB | 0.52KB | ▼ 92.48% |
Images/icon-accept.png | 7.03KB | 0.76KB | ▼ 89.13% |
Images/icon-open.png | 0.31KB | 0.31KB | 0.00% |