90% tabby-responsive-tabs

Code Review | Tabby Responsive Tabs

WordPress plugin Tabby Responsive Tabs scored90%from 54 tests.

About plugin

  • Plugin page: tabby-responsive-...
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Nov 21, 2013
  • Latest release: Nov 4, 2022
  • Number of updates: 178
  • Update frequency: every 18.4 days
  • Top authors: numeeja (100%)

Code review

54 tests

User reviews

143 reviews

Install metrics

20,000+ active /308,121 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Tabby Responsive Tabs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.08 ▼2.66
Dashboard /wp-admin3.38 ▲0.0353.86 ▼7.86
Posts /wp-admin/edit.php3.43 ▲0.0749.91 ▼2.09
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.44 ▼13.20
Media Library /wp-admin/upload.php3.30 ▲0.0737.14 ▼0.92
Tabby /wp-admin/options-general.php?page=tabby-settings3.2734.54

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
cc_tabby_fa_icon_style
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
cc_tabby_tab_title_element
cc_tabby_default_styles
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Tabby Responsive Tabs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲5014.48 ▲0.071.86 ▼0.1844.65 ▼0.14
Dashboard /wp-admin2,227 ▲244.87 ▼0.02106.24 ▼7.8237.38 ▼5.33
Posts /wp-admin/edit.php2,106 ▲22.00 ▲0.0339.13 ▲1.7634.96 ▲0.28
Add New Post /wp-admin/post-new.php1,423 ▼11117.90 ▼4.98794.49 ▲181.9869.67 ▲19.69
Media Library /wp-admin/upload.php1,406 ▲94.25 ▲0.06112.21 ▲8.2950.68 ▲3.44
Tabby /wp-admin/options-general.php?page=tabby-settings1,1772.0427.3136.34

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: classicpress, responsive, accordion, shortcode, tabs...

tabby-responsive-tabs/tabby-responsive-tabs.php Passed 13 tests

Analyzing the main PHP file in "Tabby Responsive Tabs" version 1.4.1
97 characters long description:
Create responsive tabs inside your posts, pages or custom post types by adding simple shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,090 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PO File147281,4753,321
CSS3555334
PHP497116317
JavaScript15950118

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/tabby.png55.55KB19.30KB▼ 65.26%