Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.42ms] Passed 4 tests
This is a short check of server-side resources used by UDSSL Time Tracker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.07 ▲0.09 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.26 ▼4.96 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.56 ▼1.76 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.96 ▼19.05 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.74 ▲3.68 |
Server storage [IO: ▲1.33MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 60 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_payment |
wp_category |
wp_project |
wp_time |
wp_task |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
udssl_tt_options |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by UDSSL Time Tracker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲190 | 14.54 ▲0.18 | 19.43 ▲17.51 | 45.36 ▲0.83 |
Dashboard /wp-admin | 2,235 ▲32 | 5.86 ▲0.98 | 105.96 ▼1.15 | 77.45 ▲31.38 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 2.01 ▼0.02 | 40.52 ▲4.42 | 35.22 ▲2.21 |
Add New Post /wp-admin/post-new.php | 1,689 ▲157 | 22.39 ▼0.69 | 717.99 ▲29.05 | 29.60 ▼21.86 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.23 ▼0.02 | 104.89 ▲3.09 | 74.58 ▲30.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- udssl_tt_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/udssl-time-tracker/templates/template-payment.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/udssl-time-tracker/templates/template-time.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/udssl-time-tracker/app/templates/_templates.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== udssl-time-tracker ===
)
udssl-time-tracker/index.php 85% from 13 tests
The entry point to "UDSSL Time Tracker" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("udssl-time-tracker.php" instead of "index.php")
- 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,954 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 268 | 557 | 1,772 |
JavaScript | 22 | 118 | 32 | 780 |
PO File | 2 | 139 | 233 | 307 |
CSS | 3 | 21 | 7 | 95 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 5.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 87 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/page-icon.png | 1.29KB | 0.97KB | ▼ 24.62% |
assets/udssl.png | 0.45KB | 0.36KB | ▼ 19.74% |