84% quick-and-easy-post-creation-for-acf-relationship-fields

Code Review | Quick and Easy Post creation for ACF Relationship Fields

WordPress plugin Quick and Easy Post creation for ACF Relationship Fields scored84%from 54 tests.

About plugin

  • Plugin page: quick-and-easy-po...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.6
  • WordPress version: 6.3.1
  • First release: Jul 22, 2016
  • Latest release: Sep 15, 2016
  • Number of updates: 14
  • Update frequency: every 4.5 days
  • Top authors: cyrilbatillat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,492 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.42ms] Passed 4 tests

An overview of server-side resources used by Quick and Easy Post creation for ACF Relationship Fields
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.92 ▼2.08
Dashboard /wp-admin3.35 ▲0.0551.51 ▼1.75
Posts /wp-admin/edit.php3.41 ▲0.0548.92 ▼3.27
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.37 ▼10.57
Media Library /wp-admin/upload.php3.28 ▲0.0536.93 ▲0.65

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

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

Browser metrics Passed 4 tests

Quick and Easy Post creation for ACF Relationship Fields: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▲0.071.73 ▼0.6441.46 ▼5.03
Dashboard /wp-admin2,195 ▲155.51 ▼0.1685.96 ▼12.5136.61 ▼5.62
Posts /wp-admin/edit.php2,100 ▲182.02 ▼0.0136.41 ▼0.1533.60 ▼2.31
Add New Post /wp-admin/post-new.php1,526 ▼223.03 ▼0.14648.32 ▼35.7051.29 ▼7.57
Media Library /wp-admin/upload.php1,397 ▼04.19 ▲0.0199.46 ▼31.5142.88 ▼10.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-and-easy-post-creation-for-acf-relationship-fields/acf-relationship-create.php:59

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: administration, acf, admin, shortcut, post creation...

quick-and-easy-post-creation-for-acf-relationship-fields/acf-relationship-create.php 92% from 13 tests

The principal PHP file in "Quick and Easy Post creation for ACF Relationship Fields" v. 2.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("quick-and-easy-post-creation-for-acf-relationship-fields.php" instead of "acf-relationship-create.php")

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
Everything looks great! No dangerous files found in this plugin863 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript692122308
PHP165134232
Sass1250147
CSS1612106
PO File1141470

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods426.67%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin