Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼985.41ms] Passed 4 tests
Server-side resources used by Post Worktime Logger
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.24 | 39.31 ▲19.41 |
Dashboard /wp-admin | 3.20 ▲0.15 | 50.45 ▲9.55 |
Posts /wp-admin/edit.php | 3.31 ▲0.21 | 48.10 ▲1.73 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.14 | 94.21 ▼3,947.43 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 33.79 ▼5.47 |
Worktime Logger /wp-admin/admin.php?page=post-worktime-logger-statistics | 3.12 | 30.04 |
Settings /wp-admin/admin.php?page=post-worktime-logger-settings | 3.09 | 26.43 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_pwl_frontend_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Worktime Logger
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲191 | 16.28 ▲0.43 | 12.04 ▲3.04 | 46.45 ▲2.70 |
Dashboard /wp-admin | 2,969 ▲119 | 5.88 ▲0.05 | 151.11 ▲19.71 | 101.77 ▲1.59 |
Posts /wp-admin/edit.php | 2,765 ▲59 | 2.70 ▲0.01 | 64.91 ▼1.82 | 94.24 ▲7.55 |
Add New Post /wp-admin/post-new.php | 1,908 ▲255 | 19.15 ▲0.28 | 362.70 ▲4.00 | 119.20 ▲7.06 |
Media Library /wp-admin/upload.php | 1,811 ▲39 | 5.10 ▲0.09 | 141.32 ▼32.90 | 113.19 ▲4.77 |
Worktime Logger /wp-admin/admin.php?page=post-worktime-logger-statistics | 991 | 2.98 | 57.40 | 48.36 |
Settings /wp-admin/admin.php?page=post-worktime-logger-settings | 1,187 | 2.11 | 57.27 | 72.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_pwl_frontend_widget
Smoke tests 50% 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)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=post-worktime-logger-settings
- > Warning in wp-content/plugins/post-worktime-logger/settings.php+225
Use of undefined constant WP_KEYWORD_MONITOR_TEXT_DOMAIN - assumed 'WP_KEYWORD_MONITOR_TEXT_DOMAIN' (this will throw an Error in a future version of PHP)
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/post-worktime-logger/widget.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/post-worktime-logger/widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7 in post-worktime-logger/assets to your readme.txt
post-worktime-logger/post-worktime-logger.php Passed 13 tests
The principal PHP file in "Post Worktime Logger" v. 1.5.3 is loaded by WordPress automatically on each request
45 characters long description:
A plugin to track the worktime for each post.
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 plugin1,533 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 115 | 144 | 641 |
PO File | 7 | 234 | 468 | 605 |
JavaScript | 2 | 21 | 34 | 122 |
Markdown | 1 | 57 | 0 | 112 |
CSS | 1 | 4 | 0 | 17 |
YAML | 1 | 3 | 0 | 12 |
Dockerfile | 1 | 4 | 0 | 10 |
XML | 1 | 2 | 10 | 8 |
JSON | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 12 | 75.00% |
▷ Anonymous functions | 4 | 25.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin