80% syncfields

Code Review | SyncFields

WordPress plugin SyncFields scored80%from 54 tests.

About plugin

  • Plugin page: syncfields
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.6-6.1
  • WordPress version: 6.3.1
  • First release: Feb 23, 2016
  • Latest release: Oct 26, 2022
  • Number of updates: 37
  • Update frequency: every 73.0 days
  • Top authors: pjfc (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

100+ active /5,964 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by SyncFields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.47 ▲0.04
Dashboard /wp-admin3.32 ▲0.0144.34 ▼6.15
Posts /wp-admin/edit.php3.37 ▲0.0147.92 ▼3.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.73 ▲5.04
Media Library /wp-admin/upload.php3.24 ▲0.0136.65 ▲0.79

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables
wp_msf_fileds
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for SyncFields
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.21 ▼0.921.76 ▼0.1440.52 ▼5.65
Dashboard /wp-admin2,222 ▲375.79 ▲0.90100.15 ▼16.4538.42 ▼3.50
Posts /wp-admin/edit.php2,105 ▲162.04 ▲0.0340.02 ▲3.8135.22 ▼0.79
Add New Post /wp-admin/post-new.php1,555 ▲2218.21 ▼2.88650.17 ▼48.8956.25 ▲0.69
Media Library /wp-admin/upload.php1,404 ▲194.18 ▼0.0198.11 ▼2.9442.08 ▼4.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_msf_fileds
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 42 tag instead of maximum 10
You can take inspiration from this readme.txt

syncfields/syncfields.php Passed 13 tests

The main PHP script in "SyncFields" version 2.0 is automatically included on every request by WordPress
37 characters long description:
Map and Sync User Custom Meta Fields.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin319 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27822319

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icons/map-sync.png1.00KB1.02KB0.00%