90% tabs

Code Review | Tabs & Accordion

WordPress plugin Tabs & Accordion scored90%from 54 tests.

About plugin

  • Plugin page: tabs
  • Plugin version: 1.3.10
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 23, 2014
  • Latest release: Aug 23, 2023
  • Number of updates: 46
  • Update frequency: every 71.0 days
  • Top authors: pickplugins (58.7%)paratheme (23.91%)wpkids (21.74%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /38,867 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.59MB] [CPU: ▲1.62ms] Passed 4 tests

A check of server-side resources used by Tabs & Accordion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.09 ▲1.6255.88 ▲13.88
Dashboard /wp-admin4.92 ▲1.6158.93 ▲4.22
Posts /wp-admin/edit.php4.97 ▲1.6159.52 ▲7.35
Add New Post /wp-admin/post-new.php7.46 ▲1.5795.68 ▼16.49
Media Library /wp-admin/upload.php4.78 ▲1.5550.88 ▲11.41
All Tabs /wp-admin/edit.php?post_type=tabs4.8848.04
Settings /wp-admin/edit.php?post_type=tabs&page=settings4.8149.84
Add New /wp-admin/post-new.php?post_type=tabs5.0762.58

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 97 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_widget_tabs
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Tabs & Accordion
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲16213.84 ▼0.4110.09 ▲8.5246.70 ▲3.98
Dashboard /wp-admin2,245 ▲685.55 ▼0.1285.52 ▼1.6485.60 ▲38.92
Posts /wp-admin/edit.php2,148 ▲482.01 ▲0.0137.66 ▼4.0734.91 ▼2.72
Add New Post /wp-admin/post-new.php1,576 ▲5023.15 ▼0.37709.65 ▲89.81168.56 ▲114.13
Media Library /wp-admin/upload.php1,447 ▲504.22 ▼0.0199.78 ▼4.6778.19 ▲35.62
All Tabs /wp-admin/edit.php?post_type=tabs1,1231.9433.1133.29
Settings /wp-admin/edit.php?post_type=tabs&page=settings2,4775.3890.7670.26
Add New /wp-admin/post-new.php?post_type=tabs5,5647.61203.55117.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_widget_tabs
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #5 (screenshot-5), #6 (screenshot-6), #7 (screenshot-7), #8 (screenshot-8), #9 (screenshot-9), #10 (screenshot-10)
The official readme.txt might help

tabs/tabs.php Passed 13 tests

"Tabs & Accordion" version 1.3.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Fully responsive and mobile ready tabs & accordion for wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin33,161 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
SVG4009,251
PHP444,1292238,365
CSS92,4351198,240
JavaScript59509687,305

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity82.00
▷ Minimum class complexity3.00
▷ Maximum class complexity663.00
Average method complexity12.76
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods62
▷ Static methods00.00%
▷ Public methods62100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions70
▷ Named functions70100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
15 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/semi-rounded.png6.93KB3.14KB▼ 54.74%
assets/frontend/css/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%
assets/admin/images/tab.png14.40KB0.32KB▼ 97.80%
assets/global/images/bg/small_steps.png0.16KB0.16KB0.00%
assets/admin/images/tabs.png28.50KB8.45KB▼ 70.34%