Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.35ms] Passed 4 tests
This is a short check of server-side resources used by Taghound Media Tagger
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 38.67 ▼6.69 |
Dashboard /wp-admin | 3.46 ▲0.15 | 52.82 ▼0.81 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.29 ▲4.62 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 87.01 ▼9.60 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 44.02 ▲3.70 |
Tags /wp-admin/edit-tags.php?taxonomy=tmt_tag&post_type=attachment | 3.37 | 45.06 |
Taghound /wp-admin/options-general.php?page=taghound-settings | 3.35 | 46.93 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Taghound Media Tagger
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 14.44 ▲0.27 | 1.91 ▲0.07 | 48.21 ▼1.18 |
Dashboard /wp-admin | 2,205 ▲20 | 5.82 ▼0.04 | 107.66 ▼11.88 | 42.92 ▲3.91 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.06 ▲0.02 | 47.67 ▲9.88 | 37.26 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 23.13 ▼0.12 | 642.68 ▲3.83 | 73.62 ▲4.12 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.25 ▲0.03 | 121.40 ▲8.54 | 44.67 ▼2.15 |
Tags /wp-admin/edit-tags.php?taxonomy=tmt_tag&post_type=attachment | 1,242 | 2.14 | 33.34 | 29.15 |
Taghound /wp-admin/options-general.php?page=taghound-settings | 823 | 1.98 | 49.64 | 32.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
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 server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=taghound-settings
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=taghound-settings
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 16 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=taghound-settings
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=taghound-settings
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
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
Please fix the following items
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/taghound-media-tagger/tests/test-attachment.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/taghound-media-tagger/tests/test-valid-image-specification.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/taghound-media-tagger/tests/test-tagger-service.php:13
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/taghound-media-tagger/tests/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function Taghound_Media_Tagger\\add_action() in wp-content/plugins/taghound-media-tagger/taxonomies/tmt-tag.php:46
- > PHP Warning
Use of undefined constant TMT_SETTING_PREFIX - assumed 'TMT_SETTING_PREFIX' (this will throw an Error in a future version of PHP) in wp-content/plugins/taghound-media-tagger/lib/class-admin-settings.php on line 55
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/taghound-media-tagger/tests/helpers/class-attachment-helper.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function Taghound_Media_Tagger\\add_action() in wp-content/plugins/taghound-media-tagger/taxonomies/tmt-tag.php:46
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/taghound-media-tagger/tests/test-bulk-tagger-service.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function Taghound_Media_Tagger\\tmt_can_be_enabled() in wp-content/plugins/taghound-media-tagger/lib/class-admin-settings.php:70
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: tagging, admin, images, media gallery, neural network...
taghound-media-tagger/taghound-media-tagger.php 92% from 13 tests
The main file in "Taghound Media Tagger" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,744 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 244 | 426 | 919 |
JavaScript | 4 | 120 | 54 | 466 |
Markdown | 2 | 60 | 0 | 132 |
Bourne Shell | 1 | 21 | 7 | 99 |
CSS | 1 | 9 | 0 | 54 |
YAML | 1 | 0 | 0 | 32 |
XML | 2 | 3 | 0 | 28 |
JSON | 1 | 1 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 4.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 9 | 15.79% |
▷ Public methods | 54 | 94.74% |
▷ Protected methods | 3 | 5.26% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 8 | 53.33% |
▷ Anonymous functions | 7 | 46.67% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin