10% wp-bootstrap-tabs

Code Review | WP Bootstrap Tabs

WordPress plugin WP Bootstrap Tabs scored 10% from 54 tests.

About plugin

  • Plugin page: wp-bootstrap-tabs
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Mar 2, 2013
  • Latest release: Aug 10, 2013
  • Number of updates: 9
  • Update frequency: every 17.9 days
  • Top authors: Virtus Designs (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 6,742 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-bootstrap-tabs/tinymce/tinymce.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; add_bootstraptabs_button has a deprecated constructor

Server metrics [RAM: ▼1.84MB] [CPU: ▼51.05ms] Passed 4 tests

Analyzing server-side resources used by WP Bootstrap Tabs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.37 ▼33.56
Dashboard /wp-admin2.16 ▼1.147.56 ▼37.69
Posts /wp-admin/edit.php2.17 ▼1.197.11 ▼37.23
Add New Post /wp-admin/post-new.php2.16 ▼3.726.50 ▼95.71
Media Library /wp-admin/upload.php2.16 ▼1.065.76 ▼27.72

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Bootstrap Tabs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.19 ▼1.191.71 ▲0.0144.66 ▼6.17
Dashboard /wp-admin2,204 ▲195.82 ▲0.95102.92 ▼3.2041.67 ▼1.39
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0233.91 ▲0.5632.89 ▼1.71
Add New Post /wp-admin/post-new.php1,545 ▲818.64 ▼4.60593.39 ▼95.2952.80 ▼0.62
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0197.19 ▼2.4040.80 ▼9.87
WP Bootstrap Tabs /wp-admin/wp-bootstrap-tabs.php260.440.1014.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-bootstrap-tabs/tinymce/tinymce.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; add_bootstraptabs_button has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bootstraptabs_url() in wp-content/plugins/wp-bootstrap-tabs/tinymce/tinymce.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/wp-bootstrap-tabs/uninstall.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-bootstrap-tabs/wp-bootstrap-tabs.php:30

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 take a look at the following user-side issues
    • > GET request to /wp-admin/wp-bootstrap-tabs.php
    • > Network (severe)
    wp-admin/wp-bootstrap-tabs.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Usage on Edit Post Panel) image not found
The official readme.txt is a good inspiration

wp-bootstrap-tabs/wp-bootstrap-tabs.php 92% from 13 tests

Analyzing the main PHP file in "WP Bootstrap Tabs" version 1.0.4
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 343 characters long)

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
Good job! No executable or dangerous file extensions detected754 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS27013338
PHP39674299
JavaScript44656117

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/editor-button.png13.82KB6.00KB▼ 56.54%
images/virtus_logo_wp.png18.68KB5.84KB▼ 68.73%
images/backupbuddy-img.png31.38KB30.68KB▼ 2.23%
tinymce/tab.png2.04KB1.12KB▼ 45.12%
images/sucuri-img.png23.50KB12.77KB▼ 45.65%