84% acf-field-name-copier

Code Review | Advanced Custom Fields : Field Name Copier

WordPress plugin Advanced Custom Fields : Field Name Copier scored84%from 54 tests.

About plugin

  • Plugin page: acf-field-name-co...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0.2
  • WordPress version: 6.3.1
  • First release: Dec 12, 2017
  • Latest release: Jun 13, 2019
  • Number of updates: 11
  • Update frequency: every 49.8 days
  • Top authors: Tusko Trush (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /851 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Advanced Custom Fields : Field Name Copier
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.09 ▼4.82
Dashboard /wp-admin3.31 ▼0.0441.75 ▼14.97
Posts /wp-admin/edit.php3.36 ▲0.0046.94 ▲1.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.35 ▼17.95
Media Library /wp-admin/upload.php3.23 ▲0.0033.69 ▼2.17

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Custom Fields : Field Name Copier
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.20 ▼1.175.64 ▲3.9238.33 ▼0.36
Dashboard /wp-admin2,208 ▲204.87 ▼1.0199.68 ▼6.2139.20 ▼6.00
Posts /wp-admin/edit.php2,092 ▲242.03 ▲0.0240.20 ▲3.9233.81 ▼3.52
Add New Post /wp-admin/post-new.php1,517 ▼1617.46 ▼5.88689.08 ▲1.2855.01 ▼5.18
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.0195.60 ▼6.5841.80 ▼1.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/acf-field-name-copier/plugin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === acf-field-name-copier === )
The official readme.txt is a good inspiration

acf-field-name-copier/plugin.php 92% from 13 tests

The primary PHP file in "Advanced Custom Fields : Field Name Copier" version 1.0.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("acf-field-name-copier.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP122522

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin