94% acf-tab-merge

Code Review | ACF Tab Merge

WordPress plugin ACF Tab Merge scored 94% from 54 tests.

About plugin

  • Plugin page: acf-tab-merge
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 5.9.2
  • First release: Jul 3, 2017
  • Latest release: Dec 12, 2017
  • Number of updates: 3
  • Update frequency: every 54.0 days
  • Top authors: enshrined (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,814 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼297.56ms] Passed 4 tests

An overview of server-side resources used by ACF Tab Merge
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.99 ▲2.62
Dashboard /wp-admin3.41 ▲0.0137.76 ▲4.28
Posts /wp-admin/edit.php3.65 ▲0.0136.79 ▲1.46
Add New Post /wp-admin/post-new.php6.88 ▼0.0997.19 ▼1,193.82
Media Library /wp-admin/upload.php3.30 ▲0.0022.43 ▼0.50

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ACF Tab Merge
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.22 ▲0.535.87 ▼0.002.31 ▼0.31
Dashboard /wp-admin2,892 ▲316.02 ▼0.13116.04 ▼13.83155.58 ▼4.78
Posts /wp-admin/edit.php2,688 ▼63.23 ▼0.0062.14 ▼1.27133.82 ▼8.09
Add New Post /wp-admin/post-new.php1,622 ▼3920.09 ▲3.61375.01 ▼60.98157.68 ▲5.77
Media Library /wp-admin/upload.php1,701 ▼05.53 ▼0.01138.60 ▼6.31181.06 ▲0.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-tab-merge/acf-tab-merge.php:50

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: acf tab, acf, tabs, merge, advanced custom fields

acf-tab-merge/acf-tab-merge.php Passed 13 tests

Analyzing the main PHP file in "ACF Tab Merge" version 1.0.2
58 characters long description:
Merges ACF tabs across field groups into a single tab list

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
Everything looks great! No dangerous files found in this plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161529

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.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