84% acf-tab-merge

Code Review | ACF Tab Merge

WordPress plugin ACF Tab Merge scored 84% 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: 6.3.1
  • 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 / 2,481 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by ACF Tab Merge
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.05 ▼3.39
Dashboard /wp-admin3.31 ▲0.0145.62 ▼0.03
Posts /wp-admin/edit.php3.36 ▲0.0143.58 ▼2.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.79 ▼19.33
Media Library /wp-admin/upload.php3.23 ▲0.0033.56 ▼2.46

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for ACF Tab Merge
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.78 ▲0.202.06 ▲0.2948.22 ▲11.57
Dashboard /wp-admin2,209 ▲185.88 ▼0.02100.62 ▲0.3738.51 ▼3.34
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0136.37 ▲0.7530.97 ▼0.54
Add New Post /wp-admin/post-new.php1,539 ▲2023.17 ▲2.37675.73 ▼69.8971.03 ▲9.00
Media Library /wp-admin/upload.php1,388 ▲64.24 ▲0.0294.75 ▼3.8042.44 ▼2.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings 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 a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: merge, advanced custom fields, tabs, acf tab, acf

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

"ACF Tab Merge" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161529

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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

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