88% turbotabs

Code Review | TurboTabs LIGHT

WordPress plugin TurboTabs LIGHT scored 88% from 54 tests.

About plugin

  • Plugin page: turbotabs
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.3
  • WordPress version: 5.9.2
  • First release: May 22, 2015
  • Latest release: Sep 13, 2015
  • Number of updates: 9
  • Update frequency: every 12.7 days
  • Top authors: zutigrm (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,145 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼292.42ms] Passed 4 tests

This is a short check of server-side resources used by TurboTabs LIGHT
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3052.72 ▼0.83
Dashboard /wp-admin3.66 ▲0.2535.66 ▲2.67
Posts /wp-admin/edit.php3.89 ▲0.2438.94 ▲0.17
Add New Post /wp-admin/post-new.php7.13 ▲0.1595.32 ▼1,171.68
Media Library /wp-admin/upload.php3.55 ▲0.2526.75 ▲4.34
Groups /wp-admin/edit-tags.php?taxonomy=turbotabs_group&post_type=turbotabs3.5425.69
Add Tab /wp-admin/post-new.php?post_type=turbotabs3.9147.98
Help /wp-admin/edit.php?post_type=turbotabs&page=tt-help3.5028.40
All Tabs /wp-admin/edit.php?post_type=turbotabs3.6534.44

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 73 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for TurboTabs LIGHT
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,999 ▲25516.57 ▲0.8311.81 ▲5.572.82 ▲0.46
Dashboard /wp-admin2,974 ▲1166.62 ▲0.46124.60 ▼11.27178.08 ▲17.80
Posts /wp-admin/edit.php2,770 ▲793.66 ▲0.2973.43 ▲7.92138.72 ▼6.14
Add New Post /wp-admin/post-new.php1,719 ▲5821.36 ▲0.09414.20 ▼10.23192.54 ▲36.51
Media Library /wp-admin/upload.php1,778 ▲805.93 ▲0.45138.55 ▼11.70209.17 ▲19.21
Groups /wp-admin/edit-tags.php?taxonomy=turbotabs_group&post_type=turbotabs1,7023.3662.66112.57
Add Tab /wp-admin/post-new.php?post_type=turbotabs5,34810.32209.28323.97
Help /wp-admin/edit.php?post_type=turbotabs&page=tt-help1,1723.1860.59119.63
All Tabs /wp-admin/edit.php?post_type=turbotabs1,4883.3467.03121.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/edit.php?post_type=turbotabs&page=tt-help
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/edit.php?post_type=turbotabs&page=tt-help
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=turbotabs
    • > Rendering (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1 The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("")
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === turbotabs === )
You can take inspiration from this readme.txt

turbotabs/turbotabs.php Passed 13 tests

This is the main PHP file of "TurboTabs LIGHT" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
118 characters long description:
Responsive Tabs Wordpress plugin with plenty of customization options that allows you to have all-in-one tabs package.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin7,767 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
CSS6611053,147
SVG3001,314
PHP5491371,241
HTML81961854
JavaScript77564639
PO File4244244572

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.50
▷ Minimum class complexity12.00
▷ Maximum class complexity21.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods18100.00%
▷ Public methods1583.33%
▷ Protected methods316.67%
▷ Private methods00.00%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 1.07MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/help/images/turbotabs_menu.png3.34KB2.31KB▼ 30.94%
assets/images/tinymce-button.png9.62KB5.77KB▼ 40.00%
assets/help/images/classic_lyt.png91.48KB40.24KB▼ 56.01%
assets/help/images/vertical_a.png75.68KB32.07KB▼ 57.63%
assets/help/images/hollow_lyt.png109.27KB50.89KB▼ 53.42%