88% wp-studio-tabs

Code Review | WP Studio Tabs

WordPress plugin WP Studio Tabs scored 88% from 54 tests.

About plugin

  • Plugin page: wp-studio-tabs
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.4
  • WordPress version: 5.8.1
  • First release: Feb 10, 2020
  • Latest release: Jun 12, 2020
  • Number of updates: 14
  • Update frequency: every 8.8 days
  • Top authors: rm2773 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 394 total downloads

Benchmarks

Plugin footprint Passed 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.14MB] [CPU: ▼154.48ms] Passed 4 tests

This is a short check of server-side resources used by WP Studio Tabs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.80 ▲0.0728.40 ▲2.99
Dashboard /wp-admin2.98 ▼0.0830.48 ▼18.58
Posts /wp-admin/edit.php3.04 ▼0.0834.08 ▼13.12
Add New Post /wp-admin/post-new.php5.04 ▼0.4076.59 ▼583.97
Media Library /wp-admin/upload.php3.00 ▼0.0031.22 ▼2.23
Manage Tabs /wp-admin/edit.php?post_type=wpstudio__tabs3.0228.14

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WP Studio Tabs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,858 ▲26216.95 ▲1.3214.37 ▲4.4753.02 ▼4.17
Dashboard /wp-admin3,008 ▲716.90 ▲0.97148.09 ▼7.11116.92 ▲4.73
Posts /wp-admin/edit.php2,809 ▲702.59 ▼0.1078.07 ▲12.40117.84 ▲17.36
Add New Post /wp-admin/post-new.php1,542 ▼6414.81 ▼4.01316.53 ▼97.16112.22 ▼4.10
Media Library /wp-admin/upload.php1,845 ▲385.28 ▲0.25137.86 ▼21.12126.31 ▲2.09
Manage Tabs /wp-admin/edit.php?post_type=wpstudio__tabs1,4522.7976.9590.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wpstudio__tabs
    • > Warning in wp-content/plugins/wp-studio-tabs/wpstudio-tabs.php+70
    Use of undefined constant PLUGIN_VER - assumed 'PLUGIN_VER' (this will throw an Error in a future version of PHP)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-studio-tabs/includes/custom-css.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-studio-tabs/includes/manage-page.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-studio-tabs/includes/settings-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-studio-tabs/includes/metabox.php:83
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_shortcode() in wp-content/plugins/wp-studio-tabs/css/style.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: tab, tabs, tabs widget, responsive tabs, accordion

wp-studio-tabs/wpstudio-tabs.php 85% from 13 tests

The main PHP script in "WP Studio Tabs" version 1.0.8 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-studio-tabs.php" instead of "wpstudio-tabs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,701 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS318019819
PHP614625595
JavaScript3126159287

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wpstudio-logo.png6.89KB3.30KB▼ 52.06%
images/icon-128x128.png25.92KB2.51KB▼ 90.30%
images/icon-256x256.png33.85KB5.08KB▼ 84.98%