Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-wizard-cloak/plugin.php+371
Function create_function() is deprecated
Server metrics [RAM: ▼0.60MB] [CPU: ▼24.45ms] Passed 4 tests
Server-side resources used by WP Wizard Cloak
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 47.35 ▲3.77 |
Dashboard /wp-admin | 3.34 ▲0.04 | 32.22 ▼18.04 |
Posts /wp-admin/edit.php | 3.34 ▼0.01 | 32.83 ▼15.45 |
Add New Post /wp-admin/post-new.php | 3.34 ▼2.55 | 28.99 ▼63.17 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 32.18 ▼1.14 |
Edit Link /wp-admin/admin.php?page=pmlc-admin-edit | 3.34 | 29.68 |
Home /wp-admin/admin.php?page=pmlc-admin-home | 3.34 | 31.61 |
Manage Links /wp-admin/admin.php?page=pmlc-admin-links | 3.34 | 26.55 |
Auto-Linked KWs /wp-admin/admin.php?page=pmlc-admin-keywords | 3.34 | 27.60 |
TinyMCE /wp-admin/admin.php?page=pmlc-admin-tinymce | 3.34 | 27.50 |
Statistics /wp-admin/admin.php?page=pmlc-admin-statistics | 3.34 | 28.80 |
Settings /wp-admin/admin.php?page=pmlc-admin-settings | 3.34 | 26.22 |
Create Link /wp-admin/admin.php?page=pmlc-admin-add | 3.34 | 26.79 |
Help /wp-admin/admin.php?page=pmlc-admin-help | 3.34 | 28.28 |
Server storage [IO: ▲2.69MB] [DB: ▲9.62MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 123 new files
Database: 7 new tables, 7 new options
New tables |
---|
wp_pmlc_geoipcountry |
wp_pmlc_rules |
wp_pmlc_stats |
wp_pmlc_destinations |
wp_pmlc_automatches |
wp_pmlc_keywords |
wp_pmlc_links |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
PMLC_Plugin_Options |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Wizard Cloak
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲139 | 13.33 ▼1.35 | 2.02 ▲0.13 | 47.56 ▼3.84 |
Dashboard /wp-admin | 2,240 ▲52 | 4.93 ▲0.03 | 105.38 ▼11.15 | 82.85 ▲37.98 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.04 ▲0.03 | 35.87 ▲2.47 | 32.78 ▼5.01 |
Add New Post /wp-admin/post-new.php | 1,556 ▲12 | 23.24 ▲0.18 | 726.32 ▲48.00 | 52.95 ▼5.66 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.22 ▲0.07 | 95.56 ▼4.30 | 72.09 ▲27.48 |
Edit Link /wp-admin/admin.php?page=pmlc-admin-edit | 3,851 | 2.41 | 51.91 | 31.38 |
Home /wp-admin/admin.php?page=pmlc-admin-home | 906 | 2.77 | 49.64 | 26.71 |
Manage Links /wp-admin/admin.php?page=pmlc-admin-links | 1,068 | 2.24 | 33.98 | 48.00 |
Auto-Linked KWs /wp-admin/admin.php?page=pmlc-admin-keywords | 1,063 | 2.37 | 33.49 | 48.63 |
TinyMCE /wp-admin/admin.php?page=pmlc-admin-tinymce | 391 | 2.20 | 19.38 | 0.09 |
Statistics /wp-admin/admin.php?page=pmlc-admin-statistics | 982 | 2.20 | 35.58 | 41.52 |
Settings /wp-admin/admin.php?page=pmlc-admin-settings | 1,190 | 2.37 | 36.63 | 65.66 |
Create Link /wp-admin/admin.php?page=pmlc-admin-add | 3,852 | 2.38 | 37.50 | 47.46 |
Help /wp-admin/admin.php?page=pmlc-admin-help | 909 | 2.71 | 33.59 | 47.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲9.62MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-wizard-cloak/actions/admin_init.php+8
Function create_function() is deprecated
- Zombie tables detected upon uninstall: 7 tables
- wp_pmlc_keywords
- wp_pmlc_stats
- wp_pmlc_links
- wp_pmlc_automatches
- wp_pmlc_geoipcountry
- wp_pmlc_rules
- wp_pmlc_destinations
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- PMLC_Plugin_Options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 0% 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
- 39 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-help
- > Deprecated in wp-content/plugins/wp-wizard-cloak/controllers/controller/admin.php+89
Function create_function() is deprecated
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-help
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-help
- > Warning in wp-content/plugins/wp-wizard-cloak/views/admin/help/index.php+7
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- > GET request to /wp-admin/admin.php?page=pmlc-admin-home
- > Warning in wp-content/plugins/wp-wizard-cloak/views/admin/home/index.php+8
file_get_contents(http://www.wpwizardcloak.com/adminpanel/index.php?lite=true&v=1.0.1): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
- > GET request to /wp-admin/admin.php?page=pmlc-admin-help
- > Warning in wp-content/plugins/wp-wizard-cloak/views/admin/help/index.php+7
file_get_contents(http://www.wpwizardcloak.com/adminpanel/help.php?lite=true&v=1.0.1): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 0% 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
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-wizard-cloak/views/admin/statistics/index-help.php
- > /wp-content/plugins/wp-wizard-cloak/views/admin/help/index-help.php
- > /wp-content/plugins/wp-wizard-cloak/views/admin/links/index-help.php
- > /wp-content/plugins/wp-wizard-cloak/views/admin/home/index-help.php
- > /wp-content/plugins/wp-wizard-cloak/views/admin/keywords/index-help.php
- > /wp-content/plugins/wp-wizard-cloak/views/admin/statistics/stats-help.php
- > /wp-content/plugins/wp-wizard-cloak/views/admin/settings/index-help.php
- > /wp-content/plugins/wp-wizard-cloak/views/admin/edit/index-help.php
- > /wp-content/plugins/wp-wizard-cloak/views/admin/keywords/edit-help.php
- 44× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Model' not found in wp-content/plugins/wp-wizard-cloak/models/model/record.php:7
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Model_List' not found in wp-content/plugins/wp-wizard-cloak/models/keyword/list.php:3
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Model_List' not found in wp-content/plugins/wp-wizard-cloak/models/geoipcountry/list.php:3
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Admin_Edit' not found in wp-content/plugins/wp-wizard-cloak/controllers/admin/add.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-wizard-cloak/views/admin/settings/reset.php:1
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Model_List' not found in wp-content/plugins/wp-wizard-cloak/models/automatch/list.php:3
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Model_Record' not found in wp-content/plugins/wp-wizard-cloak/models/geoipcountry/record.php:3
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Controller_Admin' not found in wp-content/plugins/wp-wizard-cloak/controllers/admin/links.php:7
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Model_List' not found in wp-content/plugins/wp-wizard-cloak/models/destination/list.php:3
- > PHP Fatal error
Uncaught Error: Class 'PMLC_Model_List' not found in wp-content/plugins/wp-wizard-cloak/models/link/list.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-help
- > Javascript (severe) in unknown
/wp-content/plugins/wp-wizard-cloak/static/js/jquery/jqplot/jquery.jqplot.js?ver=6.3.1 202:39 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-help
- > Javascript (severe) in unknown
/wp-content/plugins/wp-wizard-cloak/static/js/jquery/jqplot/plugins/jqplot.categoryAxisRenderer.js?ver=6.3.1 50:46 Uncaught TypeError: $.jqplot.LinearAxisRenderer is not a constructor
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-help
- > Javascript (severe) in unknown
/wp-content/plugins/wp-wizard-cloak/static/js/jquery/jqplot/plugins/jqplot.dateAxisRenderer.js?ver=6.3.1 98:42 Uncaught TypeError: $.jqplot.LinearAxisRenderer is not a constructor
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-help
- > Javascript (severe) in unknown
/wp-content/plugins/wp-wizard-cloak/static/js/jquery/jqplot/plugins/jqplot.highlighter.js?ver=6.3.1 18:32 Uncaught TypeError: Cannot read properties of undefined (reading 'push')
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-help
- > 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=6.3.1 1:28609 "jQuery.Deferred exception: this[binder] is not a function" "TypeError: this[binder] is not a function\n at $.fn.tipsy (/wp-content/plugins/wp-wizard-cloak/static/js/jquery/jquery.tipsy.js?ver=6.3.1:161:25)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-wizard-cloak/static/js/admin.js?ver=6.3.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=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:27292)" undefined
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pmlc-admin-help
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28721 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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: link, affiliate, cloak, pretty, short...
wp-wizard-cloak/plugin.php 85% from 13 tests
The main PHP file in "WP Wizard Cloak" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 265 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-wizard-cloak.php" instead of "plugin.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 detected14,573 lines of code in 89 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 936 | 2,551 | 9,092 |
PHP | 71 | 456 | 892 | 4,601 |
CSS | 5 | 82 | 88 | 880 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 16.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 4.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 4 | 12.12% |
▷ Concrete classes | 29 | 87.88% |
▷ Final classes | 1 | 3.45% |
Methods | 134 | |
▷ Static methods | 3 | 2.24% |
▷ Public methods | 121 | 90.30% |
▷ Protected methods | 13 | 9.70% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/js/jquery/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
static/img/help.png | 1.51KB | 0.61KB | ▼ 59.78% |
static/js/jquery/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
static/js/jquery/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
static/js/jquery/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |