10% jquery-tabber-widget

Code Review | jQuery Tabber Widget

WordPress plugin jQuery Tabber Widget scored 10% from 54 tests.

About plugin

  • Plugin page: jquery-tabber-widget
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5
  • WordPress version: 6.3.1
  • First release: Mar 24, 2013
  • Latest release: Jun 9, 2013
  • Number of updates: 22
  • Update frequency: every 80.5 days
  • Top authors: noumaan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 3,887 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
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/jquery-tabber-widget/jquery-tabber-widget.php+91
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼54.85ms] Passed 4 tests

A check of server-side resources used by jQuery Tabber Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.69 ▼34.96
Dashboard /wp-admin2.05 ▼1.257.17 ▼42.14
Posts /wp-admin/edit.php2.05 ▼1.315.31 ▼46.91
Add New Post /wp-admin/post-new.php2.05 ▼3.845.43 ▼95.40
Media Library /wp-admin/upload.php2.05 ▼1.187.14 ▼27.51

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_tabberwidget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for jQuery Tabber Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.59 ▼1.161.83 ▲0.0344.89 ▲2.30
Dashboard /wp-admin2,206 ▲325.81 ▲0.6899.54 ▼9.1539.31 ▼4.39
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0334.90 ▼7.4830.00 ▼5.64
Add New Post /wp-admin/post-new.php1,536 ▲323.30 ▼0.06655.80 ▲50.7766.60 ▲19.08
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0095.56 ▼5.5344.30 ▲0.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/jquery-tabber-widget/jquery-tabber-widget.php+91
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_tabberwidget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jquery-tabber-widget/jquery-tabber-widget.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
6 plugin tags: posts, tabber, sidebar, jquery, widget...

jquery-tabber-widget/jquery-tabber-widget.php 92% from 13 tests

This is the main PHP file of "jQuery Tabber Widget" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 295 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected99 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP115969
CSS11116
JavaScript11214

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png8.21KB4.13KB▼ 49.71%