84% multi-tab

Code Review | Multi Tab

WordPress plugin Multi Tab scored 84% from 54 tests.

About plugin

  • Plugin page: multi-tab
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.0.3
  • WordPress version: 6.3.1
  • First release: Aug 2, 2016
  • Latest release: Oct 26, 2022
  • Number of updates: 22
  • Update frequency: every 103.5 days
  • Top authors: rwky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Analyzing server-side resources used by Multi Tab
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.67 ▲3.23
Dashboard /wp-admin3.32 ▲0.0144.87 ▼4.11
Posts /wp-admin/edit.php3.37 ▲0.0149.27 ▲0.73
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.10 ▼2.31
Media Library /wp-admin/upload.php3.24 ▲0.0133.77 ▼1.50

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Multi Tab
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6714.67 ▲0.371.84 ▲0.2743.38 ▼3.91
Dashboard /wp-admin2,208 ▲204.86 ▼1.00109.82 ▼2.5639.13 ▼3.33
Posts /wp-admin/edit.php2,100 ▲112.02 ▼0.1140.27 ▼1.1135.08 ▼1.54
Add New Post /wp-admin/post-new.php1,531 ▼1117.82 ▼0.32594.15 ▼49.3346.98 ▼6.48
Media Library /wp-admin/upload.php1,387 ▼44.24 ▲0.0598.76 ▼6.3944.21 ▼0.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/multi-tab/multi-tab.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

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

The main file in "Multi Tab" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
134 characters long description:
Creates a button in the WordPress admin that allows you to open multiple (check-marked) posts / pages / products(WooCommerce) at once.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin41 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP161318
JavaScript21313
Markdown18010

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin