84% w3responsive-tabs

Code Review | W3Responsive Tabs

WordPress plugin W3Responsive Tabs scored84%from 54 tests.

About plugin

  • Plugin page: w3responsive-tabs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2.2
  • WordPress version: 6.3.1
  • First release: May 12, 2015
  • Latest release: May 12, 2015
  • Number of updates: 30
  • Update frequency: N/A
  • Top authors: faruque82 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,306 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
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼12.30ms] Passed 4 tests

An overview of server-side resources used by W3Responsive Tabs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.61 ▼11.86
Dashboard /wp-admin3.31 ▼0.0349.50 ▼16.79
Posts /wp-admin/edit.php3.36 ▲0.0152.82 ▲3.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.01 ▼22.28
Media Library /wp-admin/upload.php3.24 ▲0.0139.52 ▲1.75

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for W3Responsive Tabs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.41 ▼0.949.37 ▲7.6243.25 ▼2.24
Dashboard /wp-admin2,192 ▲155.60 ▼0.0392.41 ▲4.5043.02 ▲5.07
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0138.47 ▲1.3534.51 ▼2.58
Add New Post /wp-admin/post-new.php1,526 ▼1123.04 ▲4.96675.76 ▲8.3968.44 ▲3.84
Media Library /wp-admin/upload.php1,403 ▼04.17 ▲0.0397.93 ▼12.7743.42 ▼3.91

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/w3responsive-tabs/main.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/w3responsive-tabs/main.php:11

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: jquery tab, responsive tab

w3responsive-tabs/main.php 85% from 13 tests

The principal PHP file in "W3Responsive Tabs" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("w3responsive-tabs.php" instead of "main.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin543 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS133100502
PHP1121540
JavaScript1011

PHP code Passed 2 tests

Analyzing 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.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin