10% noor-responsive-tab

Code Review | Noor Responsive Tab

WordPress plugin Noor Responsive Tab scored10%from 54 tests.

About plugin

  • Plugin page: noor-responsive-tab
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Aug 25, 2014
  • Latest release: Sep 22, 2015
  • Number of updates: 5
  • Update frequency: every 78.8 days
  • Top authors: noor-e-alam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,795 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/noor-responsive-tab/framework/includes/wpalchemy/MetaBox.php+61
    Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor

Server metrics [RAM: ▼1.38MB] [CPU: ▼49.83ms] Passed 4 tests

An overview of server-side resources used by Noor Responsive Tab
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.61 ▼0.869.93 ▼31.71
Dashboard /wp-admin2.63 ▼0.689.46 ▼40.80
Posts /wp-admin/edit.php2.63 ▼0.7311.13 ▼42.63
Add New Post /wp-admin/post-new.php2.63 ▼3.269.39 ▼84.16
Media Library /wp-admin/upload.php2.63 ▼0.608.49 ▼29.08
Tabs Category /wp-admin/edit-tags.php?taxonomy=tab_cat&post_type=rstab2.6311.14
Tabs /wp-admin/edit.php?post_type=rstab2.639.73
Add New /wp-admin/post-new.php?post_type=rstab2.6310.82

Server storage [IO: ▲2.46MB] [DB: ▲0.03MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 199 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Noor Responsive Tab
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18513.80 ▼0.5510.62 ▲8.7787.86 ▲43.80
Dashboard /wp-admin2,231 ▲545.65 ▼0.0284.07 ▼10.1538.99 ▼1.26
Posts /wp-admin/edit.php2,133 ▲332.03 ▲0.0338.73 ▼2.2337.54 ▼2.82
Add New Post /wp-admin/post-new.php1,573 ▲4524.90 ▲1.71602.05 ▼98.9466.46 ▲14.79
Media Library /wp-admin/upload.php1,427 ▲244.29 ▲0.1197.00 ▼4.8245.71 ▼2.70
Tabs Category /wp-admin/edit-tags.php?taxonomy=tab_cat&post_type=rstab1,3042.1226.4129.13
Tabs /wp-admin/edit.php?post_type=rstab1,1141.9730.7731.21
Add New /wp-admin/post-new.php?post_type=rstab6,6237.80184.93125.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/noor-responsive-tab/framework/includes/wpalchemy/MetaBox.php+61
    Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=rstab
    • > Deprecated in wp-content/plugins/noor-responsive-tab/framework/includes/wpalchemy/MetaBox.php+61
    Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=rstab
    • > Warning in wp-content/plugins/noor-responsive-tab/framework/includes/wpalchemy/MetaBox.php+2657
    count(): Parameter must be an array or an object that implements Countable
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=rstab
    • > User deprecated in wp-includes/functions.php+5453
    Function wp_richedit_pre is deprecated since version 4.3.0! Use format_for_editor() instead.
    • > GET request to /wp-admin/post-new.php?post_type=rstab
    • > Deprecated in wp-content/plugins/noor-responsive-tab/framework/bootstrap.php+195
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 115× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'VP_Util_Text' not found in wp-content/plugins/noor-responsive-tab/framework/views/option/section.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/noor-responsive-tab/framework/includes/wpalchemy/MetaBox.php:22
    • > PHP Warning
      Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/noor-responsive-tab/framework/config/dependencies.php on line 176
    • > PHP Warning
      Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/noor-responsive-tab/framework/config/dependencies.php on line 140
    • > PHP Warning
      Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/noor-responsive-tab/framework/config/dependencies.php on line 188
    • > PHP Fatal error
      Uncaught Error: Class 'VP_Control_FieldMulti' not found in wp-content/plugins/noor-responsive-tab/framework/classes/control/field/select.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'VP_Option_Control_Group' not found in wp-content/plugins/noor-responsive-tab/framework/classes/option/control/group/section.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'VP_View' not found in wp-content/plugins/noor-responsive-tab/framework/views/control/multiselect.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'VP_Control_Field' not found in wp-content/plugins/noor-responsive-tab/framework/classes/control/field/wpeditor.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'VP_Control_Field' not found in wp-content/plugins/noor-responsive-tab/framework/classes/control/field/textbox.php:3

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 user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=rstab
    • > Javascript (severe) in unknown
    /wp-content/plugins/noor-responsive-tab/framework/public/js/vendor/jquery.tipsy.js?ver=1.0.0a 179:24 Uncaught TypeError: this[binder] is not a function
    • > GET request to /wp-admin/post-new.php?post_type=rstab
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: vp.init_ace_editor is not a function" "TypeError: vp.init_ace_editor is not a function\n at vp.init_controls (/wp-content/plugins/noor-responsive-tab/framework/public/js/shared.min.js?ver=1.1:1:18433)\n at HTMLDivElement.\u003Canonymous> (/wp-content/plugins/noor-responsive-tab/framework/public/js/metabox.min.js?ver=6.3.1:1:975)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at e (/wp-content/plugins/noor-responsive-tab/framework/public/js/metabox.min.js?ver=6.3.1:1:915)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/noor-responsive-tab/framework/public/js/metabox.min.js?ver=6.3.1:1:2532)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&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&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=rstab
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: vp.init_ace_editor is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: tab with icon, bootstarp tab, powerful wordpress tab plugin, responsive tab

noor-responsive-tab/noor-responsive-tab.php 92% from 13 tests

Analyzing the main PHP file in "Noor Responsive Tab" version 1.0
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 293 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin22,814 lines of code in 161 files:
LanguageFilesBlank linesComment linesLines of code
CSS1762842310,472
PHP912,1222,3318,830
JavaScript494473032,971
SVG100414
PO File1404799
Markdown112027
JSON1001

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 102)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity21.38
▷ Minimum class complexity1.00
▷ Maximum class complexity271.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity102.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes56
▷ Abstract classes47.14%
▷ Concrete classes5292.86%
▷ Final classes00.00%
Methods505
▷ Static methods8917.62%
▷ Public methods47293.47%
▷ Protected methods193.76%
▷ Private methods142.77%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants40
▷ Global constants3792.50%
▷ Class constants37.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
framework/public/img/vp-logo.png1.94KB0.66KB▼ 65.94%
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
framework/public/img/bootstrap-colorpicker/hue.png2.90KB0.50KB▼ 82.71%