Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-dynamic-links/plugin.php+347
Function create_function() is deprecated
Server metrics [RAM: ▼0.58MB] [CPU: ▼170.86ms] Passed 4 tests
Server-side resources used by WP Dynamic Links
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.24 | 39.78 ▲9.01 |
Dashboard /wp-admin | 3.07 ▲0.02 | 31.97 ▼22.02 |
Posts /wp-admin/edit.php | 3.07 ▼0.03 | 34.94 ▼15.35 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.36 | 31.95 ▼637.04 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 29.19 ▼9.04 |
Create Link /wp-admin/admin.php?page=pmlc-admin-add | 3.07 | 29.20 |
Edit Link /wp-admin/admin.php?page=pmlc-admin-edit | 3.07 | 28.70 |
Statistics /wp-admin/admin.php?page=pmlc-admin-statistics | 3.07 | 30.18 |
TinyMCE /wp-admin/admin.php?page=pmlc-admin-tinymce | 3.07 | 29.87 |
Manage Links /wp-admin/admin.php?page=pmlc-admin-links | 3.07 | 29.13 |
Settings /wp-admin/admin.php?page=pmlc-admin-settings | 3.07 | 32.00 |
Server storage [IO: ▲2.64MB] [DB: ▲9.61MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 110 new files
Database: 6 new tables, 1 new option
New tables |
---|
wp_pmlc_automatches |
wp_pmlc_geoipcountry |
wp_pmlc_stats |
wp_pmlc_destinations |
wp_pmlc_links |
wp_pmlc_rules |
New WordPress options |
---|
PMLC_Plugin_Options |
Browser metrics Passed 4 tests
WP Dynamic Links: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,748 ▲176 | 16.27 ▲0.60 | 14.29 ▲3.14 | 50.73 ▼3.60 |
Dashboard /wp-admin | 3,006 ▲72 | 5.94 ▼0.23 | 158.39 ▼11.80 | 134.74 ▲8.37 |
Posts /wp-admin/edit.php | 2,797 ▲58 | 2.71 ▼0.01 | 78.40 ▲4.61 | 99.87 ▲5.17 |
Add New Post /wp-admin/post-new.php | 1,711 ▲130 | 18.44 ▼0.43 | 486.58 ▲69.10 | 115.11 ▲1.32 |
Media Library /wp-admin/upload.php | 1,791 ▼31 | 4.97 ▼0.03 | 149.53 ▼20.41 | 152.22 ▲24.68 |
Create Link /wp-admin/admin.php?page=pmlc-admin-add | 4,469 | 3.53 | 97.77 | 109.34 |
Edit Link /wp-admin/admin.php?page=pmlc-admin-edit | 4,486 | 3.61 | 93.38 | 111.44 |
Statistics /wp-admin/admin.php?page=pmlc-admin-statistics | 1,232 | 3.06 | 66.37 | 86.56 |
TinyMCE /wp-admin/admin.php?page=pmlc-admin-tinymce | 490 | 2.66 | 48.59 | 0.15 |
Manage Links /wp-admin/admin.php?page=pmlc-admin-links | 1,342 | 3.07 | 68.02 | 83.68 |
Settings /wp-admin/admin.php?page=pmlc-admin-settings | 1,396 | 3.07 | 72.89 | 101.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲9.61MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-dynamic-links/actions/admin_init.php+6
Function create_function() is deprecated
- Zombie tables detected upon uninstall: 6 tables
- wp_pmlc_destinations
- wp_pmlc_geoipcountry
- wp_pmlc_links
- wp_pmlc_stats
- wp_pmlc_automatches
- wp_pmlc_rules
- This plugin does not fully uninstall, leaving 1 option in the database
- PMLC_Plugin_Options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 29 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-settings
- > Deprecated in wp-content/plugins/wp-dynamic-links/controllers/controller/admin.php+81
Function create_function() is deprecated
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
- 35× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Controller_Admin' not found in wp-content/plugins/wp-dynamic-links/controllers/admin/statistics.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-dynamic-links/views/admin/edit/destination.php:5
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Controller_Admin' not found in wp-content/plugins/wp-dynamic-links/controllers/admin/settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Controller_Admin' not found in wp-content/plugins/wp-dynamic-links/controllers/admin/edit.php:7
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Model_Record' not found in wp-content/plugins/wp-dynamic-links/models/destination/record.php:3
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Model' not found in wp-content/plugins/wp-dynamic-links/models/model/record.php:7
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Model_List' not found in wp-content/plugins/wp-dynamic-links/models/stat/list.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-dynamic-links/views/admin/statistics/stats.php:7
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Controller' not found in wp-content/plugins/wp-dynamic-links/controllers/controller/admin.php:8
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Controller_Admin' not found in wp-content/plugins/wp-dynamic-links/controllers/admin/links.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-settings
- > Javascript (severe) in unknown
/wp-content/plugins/wp-dynamic-links/static/js/jquery/jqplot/jquery.jqplot.js?ver=5.8.1 202:39 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-settings
- > Javascript (severe) in unknown
/wp-content/plugins/wp-dynamic-links/static/js/jquery/jqplot/plugins/jqplot.categoryAxisRenderer.js?ver=5.8.1 50:46 Uncaught TypeError: $.jqplot.LinearAxisRenderer is not a constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-settings
- > Javascript (severe) in unknown
/wp-content/plugins/wp-dynamic-links/static/js/jquery/jqplot/plugins/jqplot.dateAxisRenderer.js?ver=5.8.1 98:42 Uncaught TypeError: $.jqplot.LinearAxisRenderer is not a constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-settings
- > Javascript (severe) in unknown
/wp-content/plugins/wp-dynamic-links/static/js/jquery/jqplot/plugins/jqplot.highlighter.js?ver=5.8.1 18:32 Uncaught TypeError: Cannot read properties of undefined (reading 'push')
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.8.1 1:31592 "jQuery.Deferred exception: this[binder] is not a function" "TypeError: this[binder] is not a function\n at s.fn.init.$.fn.tipsy (/wp-content/plugins/wp-dynamic-links/static/js/jquery/jquery.tipsy.js?ver=5.8.1:161:25)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-dynamic-links/static/js/admin.js?ver=5.8.1:8:14)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.8.1:2:30340)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.8.1 1:31702 Uncaught TypeError: this[binder] is not a function
- > GET request to /wp-admin/admin.php?page=pmlc-admin-tinymce
- > Javascript (severe) in unknown
/wp-includes/js/tinymce/tiny_mce_popup.js 32:26 Uncaught TypeError: Cannot read properties of undefined (reading 'EditorManager')
- > GET request to /wp-admin/admin.php?page=pmlc-admin-tinymce
- > Javascript (severe) in unknown
/wp-includes/js/tinymce/utils/mctabs.js 14:38 Uncaught TypeError: Cannot read properties of undefined (reading 'windowManager')
- > GET request to /wp-admin/admin.php?page=pmlc-admin-tinymce
- > Javascript (severe) in unknown
/wp-includes/js/tinymce/utils/form_utils.js 10:39 Uncaught TypeError: Cannot read properties of undefined (reading 'baseURI')
- > GET request to /wp-admin/admin.php?page=pmlc-admin-tinymce
- > Javascript (severe) in unknown
/wp-includes/js/tinymce/tiny_mce_popup.js 114:27 Uncaught TypeError: Cannot read properties of undefined (reading 'plugin_url')
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: affiliate, geotarget, shortener, redirect, pretty...
wp-dynamic-links/plugin.php 92% from 13 tests
The main PHP script in "WP Dynamic Links" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-dynamic-links.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected13,734 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 936 | 2,551 | 9,092 |
PHP | 51 | 322 | 799 | 3,767 |
CSS | 5 | 82 | 88 | 875 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 15.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 4 | 14.29% |
▷ Concrete classes | 24 | 85.71% |
▷ Final classes | 1 | 4.17% |
Methods | 116 | |
▷ Static methods | 3 | 2.59% |
▷ Public methods | 105 | 90.52% |
▷ Protected methods | 11 | 9.48% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 11 | 73.33% |
▷ Class constants | 4 | 26.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/help.png | 1.51KB | 0.61KB | ▼ 59.78% |
static/js/jquery/css/smoothness/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
static/js/jquery/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
static/js/jquery/css/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
static/img/wizard-icon.png | 0.62KB | 0.67KB | 0.00% |