10% tab-awesome

Code Review | Tabs Awesome - Reponsive WordPress Tabs Plugin

WordPress plugin Tabs Awesome - Reponsive WordPress Tabs Plugin scored10%from 54 tests.

About plugin

  • Plugin page: tab-awesome
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2020
  • Latest release: Dec 16, 2022
  • Number of updates: 11
  • Update frequency: every 69.6 days
  • Top authors: themesawesome (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,797 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/tab-awesome/tab-awesome.php+48
    Constant TAB_AWESOME_NAME already defined

Server metrics [RAM: ▼1.83MB] [CPU: ▼52.83ms] Passed 4 tests

A check of server-side resources used by Tabs Awesome - Reponsive WordPress Tabs Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.315.74 ▼32.40
Dashboard /wp-admin2.17 ▼1.135.81 ▼45.05
Posts /wp-admin/edit.php2.17 ▼1.185.96 ▼40.93
Add New Post /wp-admin/post-new.php2.17 ▼3.716.97 ▼92.92
Media Library /wp-admin/upload.php2.17 ▼1.056.57 ▼25.39
Add New /wp-admin/post-new.php?post_type=tab-awesome2.175.42
All Tabs /wp-admin/edit.php?post_type=tab-awesome2.176.53

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 561 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tabs Awesome - Reponsive WordPress Tabs Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,121 ▲37518.45 ▲4.051.92 ▲0.2939.06 ▼2.03
Dashboard /wp-admin2,533 ▲3459.26 ▲3.43191.58 ▲70.4141.29 ▼6.89
Posts /wp-admin/edit.php2,478 ▲3896.19 ▲4.1675.26 ▲39.8031.22 ▼4.94
Add New Post /wp-admin/post-new.php6,311 ▲4,78323.99 ▲6.12920.18 ▲286.2448.12 ▼19.90
Media Library /wp-admin/upload.php1,583 ▲1956.68 ▲2.48110.69 ▲16.7543.68 ▲1.08
Add New /wp-admin/post-new.php?post_type=tab-awesome9,55914.74428.8654.28
All Tabs /wp-admin/edit.php?post_type=tab-awesome1,4446.1275.3427.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/tab-awesome/tab-awesome.php+48
    Constant TAB_AWESOME_NAME already defined
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=tab-awesome
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/tab-awesome/tab-awesome.php+48
    Constant TAB_AWESOME_NAME already defined

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tab-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 136× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Container\\Fulfillable\\Fulfillable' not found in wp-content/plugins/tab-awesome/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Fulfillable_Collection.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Scripts_Field' not found in wp-content/plugins/tab-awesome/vendor/htmlburger/carbon-fields/core/Field/Header_Scripts_Field.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/tab-awesome/vendor/htmlburger/carbon-fields/core/Container/Comment_Meta_Container.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Widget\\Widget' not found in wp-content/plugins/tab-awesome/vendor/htmlburger/carbon-fields/core/Widget.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/tab-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Term_Condition.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/tab-awesome/vendor/htmlburger/carbon-fields/core/Field/Radio_Image_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Carbon_Fields' not found in wp-content/plugins/tab-awesome/vendor/ynacorp/carbon-field-uniqid/field.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/tab-awesome/vendor/htmlburger/carbon-fields/core/Field/Gravity_Form_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/tab-awesome/vendor/htmlburger/carbon-fields/core/Field/Textarea_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/tab-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Parent_Condition.php:28

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

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
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #13, #14, #15, #2, #3, #4, #5, #6, #7, #8, #9 in tab-awesome/assets to your readme.txt
Please take inspiration from this readme.txt

tab-awesome/tab-awesome.php Passed 13 tests

This is the main PHP file of "Tabs Awesome - Reponsive WordPress Tabs Plugin" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Tab Plugin For WordPress By Themes Awesome

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin46,612 lines of code in 478 files:
LanguageFilesBlank linesComment linesLines of code
CSS193,7061,76118,303
JavaScript1875,3868,89513,686
PHP1812,8567,28510,012
Sass5136701,936
PO File216147831,673
JSON1200797
Markdown6520162
SVG10043

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.01
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces27
Interfaces6
Traits0
Classes137
▷ Abstract classes118.03%
▷ Concrete classes12691.97%
▷ Final classes10.79%
Methods973
▷ Static methods10210.48%
▷ Public methods79481.60%
▷ Protected methods16917.37%
▷ Private methods101.03%
Functions132
▷ Named functions4131.06%
▷ Anonymous functions9168.94%
Constants40
▷ Global constants1537.50%
▷ Class constants2562.50%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/vertical-8.png0.11KB0.11KB▼ 0.85%
public/img/date-icon.png0.14KB0.18KB0.00%
public/img/timeline-vertical-bg.png0.91KB0.10KB▼ 89.19%
public/img/timeline-bg.png0.08KB0.10KB0.00%
public/img/date-icon-vertical.png0.95KB0.17KB▼ 82.60%