10% wp-wizard-cloak

Code Review | WP Wizard Cloak

WordPress plugin WP Wizard Cloak scored10%from 54 tests.

About plugin

  • Plugin page: wp-wizard-cloak
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: May 14, 2012
  • Latest release: Feb 26, 2015
  • Number of updates: 13
  • Update frequency: every 78.5 days
  • Top authors: soflyy (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /17,486 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2747.35 ▲3.77
Dashboard /wp-admin3.34 ▲0.0432.22 ▼18.04
Posts /wp-admin/edit.php3.34 ▼0.0132.83 ▼15.45
Add New Post /wp-admin/post-new.php3.34 ▼2.5528.99 ▼63.17
Media Library /wp-admin/upload.php3.34 ▲0.1132.18 ▼1.14
Edit Link /wp-admin/admin.php?page=pmlc-admin-edit3.3429.68
Home /wp-admin/admin.php?page=pmlc-admin-home3.3431.61
Manage Links /wp-admin/admin.php?page=pmlc-admin-links3.3426.55
Auto-Linked KWs /wp-admin/admin.php?page=pmlc-admin-keywords3.3427.60
TinyMCE /wp-admin/admin.php?page=pmlc-admin-tinymce3.3427.50
Statistics /wp-admin/admin.php?page=pmlc-admin-statistics3.3428.80
Settings /wp-admin/admin.php?page=pmlc-admin-settings3.3426.22
Create Link /wp-admin/admin.php?page=pmlc-admin-add3.3426.79
Help /wp-admin/admin.php?page=pmlc-admin-help3.3428.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲13913.33 ▼1.352.02 ▲0.1347.56 ▼3.84
Dashboard /wp-admin2,240 ▲524.93 ▲0.03105.38 ▼11.1582.85 ▲37.98
Posts /wp-admin/edit.php2,135 ▲462.04 ▲0.0335.87 ▲2.4732.78 ▼5.01
Add New Post /wp-admin/post-new.php1,556 ▲1223.24 ▲0.18726.32 ▲48.0052.95 ▼5.66
Media Library /wp-admin/upload.php1,425 ▲404.22 ▲0.0795.56 ▼4.3072.09 ▲27.48
Edit Link /wp-admin/admin.php?page=pmlc-admin-edit3,8512.4151.9131.38
Home /wp-admin/admin.php?page=pmlc-admin-home9062.7749.6426.71
Manage Links /wp-admin/admin.php?page=pmlc-admin-links1,0682.2433.9848.00
Auto-Linked KWs /wp-admin/admin.php?page=pmlc-admin-keywords1,0632.3733.4948.63
TinyMCE /wp-admin/admin.php?page=pmlc-admin-tinymce3912.2019.380.09
Statistics /wp-admin/admin.php?page=pmlc-admin-statistics9822.2035.5841.52
Settings /wp-admin/admin.php?page=pmlc-admin-settings1,1902.3736.6365.66
Create Link /wp-admin/admin.php?page=pmlc-admin-add3,8522.3837.5047.46
Help /wp-admin/admin.php?page=pmlc-admin-help9092.7133.5947.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript139362,5519,092
PHP714568924,601
CSS58288880

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 code0.62
Average class complexity16.88
▷ Minimum class complexity1.00
▷ Maximum class complexity135.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity109.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes412.12%
▷ Concrete classes2987.88%
▷ Final classes13.45%
Methods134
▷ Static methods32.24%
▷ Public methods12190.30%
▷ Protected methods139.70%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants1173.33%
▷ Class constants426.67%
▷ Public constants4100.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
FileSize - originalSize - compressedSavings
static/js/jquery/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
static/img/help.png1.51KB0.61KB▼ 59.78%
static/js/jquery/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
static/js/jquery/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
static/js/jquery/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%