10% acf-post-types-tmc

Code Review | ACF Post Types TMC

WordPress plugin ACF Post Types TMC scored 10% from 54 tests.

About plugin

  • Plugin page: acf-post-types-tmc
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.0-4.9.8
  • WordPress version: 5.9.2
  • First release: Aug 31, 2018
  • Latest release: Aug 31, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: themastercut (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 652 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/acf-post-types-tmc/tmc-acf-post-types-fields.php+29
    require(wp-content/plugins/acf-post-types-tmc/lib/ShellPress/src/Shared/Utility/RequirementChecker.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼0.02MB] [CPU: ▼300.50ms] Passed 4 tests

A check of server-side resources used by ACF Post Types TMC
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.62 ▲7.36
Dashboard /wp-admin3.41 ▲0.0034.04 ▲1.44
Posts /wp-admin/edit.php3.64 ▲0.0036.09 ▼5.71
Add New Post /wp-admin/post-new.php6.88 ▼0.0990.79 ▼1,196.75
Media Library /wp-admin/upload.php3.29 ▲0.0022.35 ▼0.97

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for ACF Post Types TMC
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.31 ▼0.345.95 ▼0.262.14 ▼0.46
Dashboard /wp-admin2,892 ▲316.04 ▼0.03117.06 ▼15.67154.63 ▼6.81
Posts /wp-admin/edit.php2,694 ▼03.24 ▼0.0064.81 ▼0.80136.78 ▼2.12
Add New Post /wp-admin/post-new.php1,661 ▼015.89 ▼0.28401.82 ▼40.82155.61 ▲4.50
Media Library /wp-admin/upload.php1,701 ▲95.53 ▼0.00144.63 ▲8.97183.39 ▼1.96

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'shellpress\\v1_2_9_1\\ShellPress' not found in wp-content/plugins/acf-post-types-tmc/src/App.php:14
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/acf-post-types-tmc/lib/ShellPress/src/Shared/Utility/RequirementChecker.php' (include_path='.:/usr/share/php') in wp-content/plugins/acf-post-types-tmc/tmc-acf-post-types-fields.php on line 29
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-post-types-tmc/src/Fields/PostTypesFieldV5.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'shellpress\\v1_2_9_1\\src\\Shared\\Components\\IComponent' not found in wp-content/plugins/acf-post-types-tmc/src/Components/Utility.php:13
    • > PHP Warning
      require(wp-content/plugins/acf-post-types-tmc/lib/ShellPress/src/Shared/Utility/RequirementChecker.php): failed to open stream: No such file or directory in wp-content/plugins/acf-post-types-tmc/tmc-acf-post-types-fields.php on line 29

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 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: radio box, select post type, acf, advanced custom field, add-on

acf-post-types-tmc/tmc-acf-post-types-fields.php 77% from 13 tests

Analyzing the main PHP file in "ACF Post Types TMC" version 1.0.2
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-post-types-tmc.php" instead of "tmc-acf-post-types-fields.php")
  • Domain Path: The domain path points to a folder that does not exist ("/langugages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected133 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP486139115
JavaScript1191218

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity4.33
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods880.00%
▷ Protected methods220.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin