84% wp-responsive-tabs

Code Review | WP Responsive Tabs

WordPress plugin WP Responsive Tabs scored84%from 54 tests.

About plugin

  • Plugin page: wp-responsive-tabs
  • Plugin version: 1.2.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.2
  • WordPress version: 6.3.1
  • First release: Jul 29, 2014
  • Latest release: May 2, 2023
  • Number of updates: 41
  • Update frequency: every 78.2 days
  • Top authors: fahadmahmood (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /6,772 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.77ms] Passed 4 tests

Analyzing server-side resources used by WP Responsive Tabs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1543.05 ▲3.61
Dashboard /wp-admin3.32 ▲0.0253.84 ▲1.39
Posts /wp-admin/edit.php3.38 ▲0.0249.05 ▼1.69
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.39 ▼9.57
Media Library /wp-admin/upload.php3.25 ▲0.0237.41 ▲2.78
WP Responsive Tabs /wp-admin/options-general.php?page=wprtabs3.2438.10

Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Responsive Tabs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲11913.43 ▼0.808.72 ▲7.0744.16 ▲2.15
Dashboard /wp-admin2,197 ▲175.62 ▼0.0985.72 ▼3.0039.59 ▼2.45
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0335.01 ▼3.3136.19 ▼1.14
Add New Post /wp-admin/post-new.php6,417 ▲4,86320.41 ▲2.251,003.73 ▲378.3340.88 ▼19.80
Media Library /wp-admin/upload.php1,408 ▲54.23 ▼0.05110.42 ▲10.4847.96 ▼0.68
WP Responsive Tabs /wp-admin/options-general.php?page=wprtabs7942.0626.3427.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-responsive-tabs/index.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_include_contents() in wp-content/plugins/wp-responsive-tabs/admin/wprtabs_metabox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-responsive-tabs/admin/wprtabs_inputs.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-responsive-tabs/admin/wprtabs_settings.php:5
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/wp-responsive-tabs/index.php on line 15
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-responsive-tabs/index.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-responsive-tabs/wprtabs.inc.php:74
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-responsive-tabs/admin/wprtabs_settings.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-responsive-tabs/wprtabs.inc.php:74

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
10 plugin tags: responsive, easy, fahadmahmood, shortcodes, wp responsive tabs...

wp-responsive-tabs/index.php 85% from 13 tests

The main PHP script in "WP Responsive Tabs" version 1.2.8 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-responsive-tabs.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin803 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP69960261
CSS2264235
JavaScript23017170
PO File33636137

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin