84% wp-tab-widget

Code Review | WP Tab Widget

WordPress plugin WP Tab Widget scored 84% from 54 tests.

About plugin

  • Plugin page: wp-tab-widget
  • Plugin version: 1.2.11
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8.1
  • WordPress version: 5.8.1
  • First release: Mar 24, 2014
  • Latest release: Sep 10, 2021
  • Number of updates: 41
  • Update frequency: every 66.5 days
  • Top authors: MyThemeShop (95.12%)roymahfooz (7.32%)

Code review

54 tests

User reviews

33 reviews

Install metrics

40,000+ active / 995,170 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼143.86ms] Passed 4 tests

This is a short check of server-side resources used by WP Tab Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.2636.39 ▲15.59
Dashboard /wp-admin3.21 ▲0.1547.70 ▲3.54
Posts /wp-admin/edit.php3.32 ▲0.2147.20 ▲4.98
Add New Post /wp-admin/post-new.php5.56 ▲0.1281.62 ▼584.87
Media Library /wp-admin/upload.php3.14 ▲0.1432.77 ▲0.92

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 3 new options
New WordPress options
wp_tab_widget_notice_views
wp_tab_widget_activated
widget_wpt_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Tab Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,712 ▲11616.21 ▲0.728.21 ▼1.1748.26 ▼9.29
Dashboard /wp-admin2,979 ▲485.89 ▼0.07139.69 ▼7.16106.87 ▼1.34
Posts /wp-admin/edit.php2,748 ▲92.69 ▼0.0061.45 ▼6.3692.80 ▼4.11
Add New Post /wp-admin/post-new.php1,502 ▼17018.59 ▼0.50370.12 ▼11.66110.39 ▼0.66
Media Library /wp-admin/upload.php1,809 ▼15.00 ▼0.01147.82 ▼5.13116.07 ▼4.41

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 3 options
    • widget_wpt_widget
    • wp_tab_widget_notice_views
    • wp_tab_widget_activated

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-tab-widget/wp-tab-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: ajax tabs, tab widget, recent posts tab, tabs, ajax widget...

wp-tab-widget/wp-tab-widget.php Passed 13 tests

Analyzing the main PHP file in "WP Tab Widget" version 1.2.11
121 characters long description:
WP Tab Widget is the AJAXified plugin which loads content by demand, and thus it makes the plugin incredibly lightweight.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,039 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP18036627
CSS11011224
JavaScript2151598
PO File1373890

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity93.00
▷ Minimum class complexity93.00
▷ Maximum class complexity93.00
Average method complexity8.67
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/smallthumb.png0.41KB0.44KB0.00%
img/largethumb.png0.88KB0.95KB0.00%