90% acf-multisite-sync

Code Review | Advanced Custom Fields: Multisite Sync

WordPress plugin Advanced Custom Fields: Multisite Sync scored90%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: 6.3.1
  • 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 /8,796 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.27ms] Passed 4 tests

Analyzing server-side resources used by Advanced Custom Fields: Multisite Sync
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.45 ▼5.17
Dashboard /wp-admin3.34 ▼0.0046.48 ▼22.37
Posts /wp-admin/edit.php3.39 ▲0.0450.40 ▼0.50
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.34 ▼13.05
Media Library /wp-admin/upload.php3.26 ▲0.0435.52 ▼0.26

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Custom Fields: Multisite Sync
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.34 ▼0.864.78 ▲2.9341.76 ▼1.84
Dashboard /wp-admin2,207 ▲225.83 ▲0.02100.43 ▼6.6638.98 ▼6.04
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0341.54 ▲5.9837.09 ▼0.73
Add New Post /wp-admin/post-new.php1,546 ▲2523.28 ▲0.31653.24 ▼0.1551.71 ▼11.72
Media Library /wp-admin/upload.php1,392 ▲44.31 ▲0.2097.19 ▼17.8643.43 ▼5.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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 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
7 plugin tags: multisite, fields, acf, sync, custom...

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 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin226 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP110464142
PO File2182084

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There were not PNG files found in your plugin