84% tabs-widget-for-page-builder

Code Review | Tabs Widget for Page Builder

WordPress plugin Tabs Widget for Page Builder scored84%from 54 tests.

About plugin

  • Plugin page: tabs-widget-for-p...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9
  • WordPress version: 6.3.1
  • First release: Jan 19, 2016
  • Latest release: Nov 22, 2017
  • Number of updates: 21
  • Update frequency: every 32.1 days
  • Top authors: capuderg (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

4,000+ active /41,684 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.80ms] Passed 4 tests

A check of server-side resources used by Tabs Widget for Page Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0247.66 ▲0.97
Dashboard /wp-admin3.32 ▼0.0249.62 ▼21.22
Posts /wp-admin/edit.php3.37 ▲0.0256.63 ▲4.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.70 ▼1.64
Media Library /wp-admin/upload.php3.24 ▲0.0240.22 ▲2.69

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tabs Widget for Page Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.33 ▼0.012.23 ▲0.3042.06 ▼2.57
Dashboard /wp-admin2,195 ▲155.67 ▲0.0590.97 ▼7.4340.89 ▼3.10
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0239.98 ▲3.8335.17 ▲0.17
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▼0.64658.15 ▼39.5650.65 ▼7.28
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0596.20 ▼13.9643.83 ▼4.66

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/tabs-widget-for-page-builder/tabs-widget-for-page-builder.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tabs-widget-for-page-builder/inc/class-tabs-widget.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: tabs, siteorigin, bootstrap, proteusthemes, widget...

tabs-widget-for-page-builder/tabs-widget-for-page-builder.php 92% from 13 tests

The principal PHP file in "Tabs Widget for Page Builder" v. 1.2.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin747 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript614890463
PHP26088215
CSS3181069

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.30
Average class complexity13.50
▷ Minimum class complexity6.00
▷ Maximum class complexity21.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin