79% ultimate-tabbed-widgets

Code Review | Ultimate Tabbed Widgets

WordPress plugin Ultimate Tabbed Widgets scored79%from 54 tests.

About plugin

  • Plugin page: ultimate-tabbed-w...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.9
  • WordPress version: 6.3.1
  • First release: Feb 5, 2015
  • Latest release: May 18, 2018
  • Number of updates: 29
  • Update frequency: every 41.4 days
  • Top authors: cvedovini (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /5,275 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.57ms] Passed 4 tests

This is a short check of server-side resources used by Ultimate Tabbed Widgets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.96 ▲1.55
Dashboard /wp-admin3.37 ▲0.0747.23 ▼4.51
Posts /wp-admin/edit.php3.48 ▲0.1345.21 ▼0.52
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.26 ▲1.21
Media Library /wp-admin/upload.php3.29 ▲0.0633.00 ▲3.30
Tabbed Widgets /wp-admin/options-general.php?page=ultimate-tabbed-widgets3.2330.08

Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_tabbed-widgets
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Tabbed Widgets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.33 ▼1.231.73 ▼0.0643.89 ▼3.16
Dashboard /wp-admin2,207 ▲165.84 ▼0.06104.19 ▼0.3339.11 ▼4.68
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0535.97 ▼1.9832.11 ▲0.25
Add New Post /wp-admin/post-new.php1,536 ▲323.39 ▲0.18594.18 ▼69.7252.29 ▼2.36
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0497.29 ▲0.4140.70 ▼4.72
Tabbed Widgets /wp-admin/options-general.php?page=ultimate-tabbed-widgets7892.0624.2231.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_tabbed-widgets
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=ultimate-tabbed-widgets
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ultimate-tabbed-widgets
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/ultimate-tabbed-widgets/templates/tabs.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-tabbed-widgets/ultimate-tabbed-widgets.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/ultimate-tabbed-widgets/templates/accordion.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: widgets, tabs, sidebar, accordion, widget

ultimate-tabbed-widgets/ultimate-tabbed-widgets.php Passed 13 tests

The main file in "Ultimate Tabbed Widgets" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
99 characters long description:
Allows to create widget areas that can be turned into tabs or accordion using widgets or shortcodes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin995 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS12130509
PO File6108132270
PHP34826216

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity6.00
▷ Minimum class complexity3.00
▷ Maximum class complexity9.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
theme/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
theme/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
theme/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
theme/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
theme/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%