Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.26MB] [CPU: ▼0.56ms] Passed 4 tests
An overview of server-side resources used by WatchTowerHQ
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 42.99 ▲2.18 |
Dashboard /wp-admin | 3.56 ▲0.21 | 48.59 ▼16.93 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 53.40 ▲5.97 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 109.49 ▲15.30 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 40.28 ▲6.53 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 3.66 | 47.41 |
Watchtower Settings /wp-admin/options-general.php?page=watchtower-setting-admin | 3.45 | 37.97 |
Server storage [IO: ▲3.05MB] [DB: ▲0.08MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 376 new files
Database: 5 new tables, 11 new options
New tables |
---|
wp_watchtower_logs |
wp_actionscheduler_logs |
wp_actionscheduler_claims |
wp_actionscheduler_actions |
wp_actionscheduler_groups |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
watchtower_db_version |
widget_recent-posts |
schema-ActionScheduler_LoggerSchema |
theysaidso_admin_options |
widget_recent-comments |
action_scheduler_hybrid_store_demarkation |
schema-ActionScheduler_StoreSchema |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WatchTowerHQ
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲38 | 14.72 ▲0.51 | 1.73 ▼0.26 | 40.45 ▼2.75 |
Dashboard /wp-admin | 2,206 ▲29 | 5.67 ▲0.13 | 86.83 ▼15.47 | 41.17 ▼2.10 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 1.94 ▼0.03 | 36.58 ▼0.85 | 33.62 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.23 ▼0.49 | 574.55 ▼80.13 | 51.50 ▼5.71 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.17 ▲0.03 | 101.05 ▲0.01 | 46.61 ▲4.29 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,256 | 1.82 | 25.50 | 29.48 |
Watchtower Settings /wp-admin/options-general.php?page=watchtower-setting-admin | 852 | 2.01 | 28.03 | 30.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables detected upon uninstall: 5 tables
- wp_actionscheduler_groups
- wp_actionscheduler_actions
- wp_actionscheduler_claims
- wp_actionscheduler_logs
- wp_watchtower_logs
- Zombie WordPress options were found after uninstall: 11 options
- schema-ActionScheduler_LoggerSchema
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- watchtower_db_version
- action_scheduler_hybrid_store_demarkation
- watchtower
- widget_theysaidso_widget
- db_upgraded
- schema-ActionScheduler_StoreSchema
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/watchtowerhq/watchtowerhq.php
- 97× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/watchtowerhq/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php:8
- > PHP Warning
require_once(ztest/ztest.php): failed to open stream: No such file or directory in wp-content/plugins/watchtowerhq/vendor/shuber/curl/test/runner.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/watchtowerhq/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/watchtowerhq/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Druidfi\\Mysqldump\\Compress\\CompressInterface' not found in wp-content/plugins/watchtowerhq/vendor/druidfi/mysqldump-php/src/Compress/CompressNone.php:7
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/watchtowerhq/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/watchtowerhq/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/watchtowerhq/vendor/symfony/polyfill-mbstring/bootstrap80.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'PhpZip\\Model\\Extra\\Fields\\AbstractUnicodeExtraField' not found in wp-content/plugins/watchtowerhq/vendor/nelexa/zip/src/Model/Extra/Fields/UnicodeCommentExtraField.php:58
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/watchtowerhq/src/class-updater-skin.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in watchtowerhq/assets to your readme.txt
- Contributors: The plugin contributors field is not present
watchtowerhq/watchtowerhq.php 92% from 13 tests
The principal PHP file in "WatchTowerHQ" v. 3.7.18 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected48,037 lines of code in 297 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 256 | 5,552 | 14,253 | 43,980 |
Markdown | 19 | 456 | 0 | 2,453 |
JSON | 14 | 0 | 0 | 1,261 |
YAML | 4 | 29 | 1 | 177 |
CSS | 1 | 18 | 0 | 118 |
XML | 1 | 0 | 0 | 23 |
Dockerfile | 1 | 12 | 0 | 14 |
JavaScript | 1 | 3 | 0 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 13.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 22 | |
Traits | 0 | |
Classes | 200 | |
▷ Abstract classes | 18 | 9.00% |
▷ Concrete classes | 182 | 91.00% |
▷ Final classes | 28 | 15.38% |
Methods | 1,824 | |
▷ Static methods | 273 | 14.97% |
▷ Public methods | 1,494 | 81.91% |
▷ Protected methods | 191 | 10.47% |
▷ Private methods | 139 | 7.62% |
Functions | 207 | |
▷ Named functions | 166 | 80.19% |
▷ Anonymous functions | 41 | 19.81% |
Constants | 250 | |
▷ Global constants | 26 | 10.40% |
▷ Class constants | 224 | 89.60% |
▷ Public constants | 213 | 95.09% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 3.46KB | 1.55KB | ▼ 55.21% |
assets/images/logo1x.png | 5.84KB | 1.42KB | ▼ 75.77% |
assets/images/logo2x.png | 9.06KB | 2.72KB | ▼ 70.01% |