Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-mediatagger/mediatagger.php+3144
Methods with the same name as their class will not be constructors in a future version of PHP; Ckeyword_filter has a deprecated constructor
Server metrics [RAM: ▼0.94MB] [CPU: ▼53.55ms] Passed 4 tests
A check of server-side resources used by WP MediaTagger
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.04 ▼0.42 | 9.04 ▼33.14 |
Dashboard /wp-admin | 3.06 ▼0.24 | 9.00 ▼44.37 |
Posts /wp-admin/edit.php | 3.06 ▼0.29 | 9.92 ▼49.84 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.82 | 8.72 ▼86.83 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 9.79 ▼24.91 |
Options /wp-admin/admin.php?page=mediatagger_options | 3.06 | 8.05 |
Player /wp-admin/admin.php?page=mediatagger_database | 3.06 | 7.69 |
Explorer /wp-admin/admin.php?page=mediatagger | 3.06 | 10.60 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/wp-mediatagger/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 23 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_mediatagger |
New WordPress options |
---|
mediatagger_admin_message |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
mediatagger |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP MediaTagger
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲187 | 13.55 ▼0.88 | 6.05 ▲4.02 | 42.93 ▼1.67 |
Dashboard /wp-admin | 2,254 ▲51 | 5.84 ▲0.91 | 102.25 ▼6.19 | 41.93 ▲0.02 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.01 ▼0.00 | 36.62 ▼3.54 | 35.80 ▼5.90 |
Add New Post /wp-admin/post-new.php | 1,459 ▼86 | 22.59 ▼0.52 | 577.81 ▼101.25 | 92.44 ▲37.49 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.28 ▲0.07 | 102.20 ▼2.35 | 40.11 ▼7.88 |
Options /wp-admin/admin.php?page=mediatagger_options | 1,264 | 2.02 | 25.37 | 41.31 |
Player /wp-admin/admin.php?page=mediatagger_database | 855 | 2.01 | 23.24 | 45.71 |
Explorer /wp-admin/admin.php?page=mediatagger | 814 | 2.02 | 25.47 | 27.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-mediatagger/mediatagger.php+3144
Methods with the same name as their class will not be constructors in a future version of PHP; Ckeyword_filter has a deprecated constructor
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_mediatagger
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- widget_recent-comments
- mediatagger_admin_message
- mediatagger
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger
- > Deprecated in wp-content/plugins/wp-mediatagger/mediatagger.php+3144
Methods with the same name as their class will not be constructors in a future version of PHP; Ckeyword_filter has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger
- > Warning in wp-content/plugins/wp-mediatagger/mediatagger.php+2874
Use of undefined constant PHD_CLIENT_IP - assumed 'PHD_CLIENT_IP' (this will throw an Error in a future version of PHP)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mediatagger handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mediatagger handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mediatagger handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mediatagger handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+379
Undefined index: cache
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger
- > User deprecated in wp-includes/functions.php+5453
Function add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- > GET request to /wp-admin/admin.php?page=mediatagger_options
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+2066
Undefined index: form_display
- > GET request to /wp-admin/admin.php?page=mediatagger_options
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+2078
Undefined index: submit_options
- > GET request to /wp-admin/admin.php?page=mediatagger_options
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+2097
Undefined property: stdClass::$options_mouse_over
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger_options
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+2608
Only variables should be passed by reference
- > GET request to /wp-admin/admin.php?page=mediatagger_database
- > Warning in wp-content/plugins/wp-mediatagger/mediatagger.php+1582
uasort() expects parameter 1 to be array, null given
- > GET request to /wp-admin/admin.php?page=mediatagger_database
- > Warning in wp-content/plugins/wp-mediatagger/mediatagger.php+1583
array_reverse() expects parameter 1 to be array, null given
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger_database
- > Warning in wp-content/plugins/wp-mediatagger/mediatagger.php+1698
Invalid argument supplied for foreach()
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger_database
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+1596
Undefined variable: count
- > GET request to /wp-admin/admin.php?page=mediatagger_database
- > Warning in wp-content/plugins/wp-mediatagger/mediatagger.php+1596
max(): When only one parameter is given, it must be an array
- > GET request to /wp-admin/admin.php?page=mediatagger_database
- > Warning in wp-content/plugins/wp-mediatagger/mediatagger.php+1596
min(): When only one parameter is given, it must be an array
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger_database
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+1885
Undefined variable: num_img_found
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mediatagger_database
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+1885
Undefined variable: display_pagination
- > GET request to /wp-admin/admin.php?page=mediatagger_database
- > Warning in wp-content/plugins/wp-mediatagger/mediatagger.php+727
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?page=mediatagger
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+2977
Undefined offset: 1
- > GET request to /wp-admin/admin.php?page=mediatagger
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+2977
Undefined offset: 2
- > GET request to /wp-admin/admin.php?page=mediatagger
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+2977
Undefined offset: 3
- > GET request to /wp-admin/admin.php?page=mediatagger
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+2977
Undefined offset: 4
- > GET request to /wp-admin/admin.php?page=mediatagger
- > Notice in wp-content/plugins/wp-mediatagger/mediatagger.php+2977
Undefined offset: 5
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-mediatagger/mediatagger.php:117
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wp-mediatagger/mediatagger-form.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _n() in wp-content/plugins/wp-mediatagger/languages/mediatagger-def-i18n.php:88
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (MediaTagger administration interface), #2 (MediaTagger media search form implementation)
- Tags: You are using too many tags: 25 tag instead of maximum 10
wp-mediatagger/mediatagger.php 92% from 13 tests
The principal PHP file in "WP MediaTagger" v. 4.1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-mediatagger.php" instead of "mediatagger.php")
Code Analysis 97% from 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 detected4,817 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 677 | 924 | 3,008 |
PO File | 2 | 435 | 461 | 1,745 |
JavaScript | 1 | 8 | 5 | 50 |
CSS | 1 | 1 | 0 | 14 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 136)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 259.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 517.00 |
Average method complexity | 6.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 136.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 | 96 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 29.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 68 | 70.83% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 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
2 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu.png | 0.63KB | 1.05KB | 0.00% |
images/test/pdf.png | 126.86KB | 15.97KB | ▼ 87.41% |