100% acf-multisite-sync

Code Review | Advanced Custom Fields: Multisite Sync

WordPress plugin Advanced Custom Fields: Multisite Sync scored 100% from 54 tests.

About plugin

  • Plugin page: acf-multisite-sync
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9
  • WordPress version: 5.9.2
  • First release: Jul 15, 2014
  • Latest release: Jul 15, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: philippkuehn (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 7,917 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Advanced Custom Fields: Multisite Sync
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0258.38 ▲3.00
Dashboard /wp-admin3.43 ▲0.0258.77 ▲22.49
Posts /wp-admin/edit.php3.66 ▲0.0237.40 ▼32.41
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.87 ▼1,221.50
Media Library /wp-admin/upload.php3.31 ▲0.0126.68 ▼1.01

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Custom Fields: Multisite Sync
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲1615.93 ▼0.106.14 ▲0.202.31 ▼0.67
Dashboard /wp-admin2,901 ▲476.09 ▼0.12118.66 ▼16.00158.00 ▲0.35
Posts /wp-admin/edit.php2,688 ▼33.23 ▼0.00109.52 ▲42.03153.96 ▼10.46
Add New Post /wp-admin/post-new.php1,672 ▼2418.12 ▼2.91411.08 ▼17.95165.24 ▲13.86
Media Library /wp-admin/upload.php1,701 ▼05.57 ▲0.04189.91 ▲49.42197.46 ▲12.63

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
Uninstaller ran successfully

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: advanced, advanced custom fields, acf, custom, fields...

acf-multisite-sync/acf-multisite-sync.php Passed 13 tests

This is the main PHP file of "Advanced Custom Fields: Multisite Sync" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
Sync your Advanced Custom Fields to all of your multisite installations with just one click. Needs ACF Pro 5.0+

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
No dangerous file extensions were detected226 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File2182084

PHP code Passed 2 tests

This is a very shot review of 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.25
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin