77% plus-features-for-advanced-custom-fields

Code Review | Plus Features for Advanced Custom Fields

WordPress plugin Plus Features for Advanced Custom Fields scored77%from 54 tests.

About plugin

  • Plugin page: plus-features-for...
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 20, 2023
  • Latest release: Sep 19, 2023
  • Number of updates: 12
  • Update frequency: every 9.0 days
  • Top authors: thewpcatalyst (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /283 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.87ms] Passed 4 tests

Analyzing server-side resources used by Plus Features for Advanced Custom Fields
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.58 ▼7.37
Dashboard /wp-admin3.44 ▲0.1348.37 ▼5.78
Posts /wp-admin/edit.php3.49 ▲0.1348.13 ▲0.16
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.65 ▼16.34
Media Library /wp-admin/upload.php3.30 ▲0.0735.29 ▼1.97

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Plus Features for Advanced Custom Fields: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲14613.39 ▼1.327.52 ▲5.8241.04 ▲2.30
Dashboard /wp-admin2,208 ▲285.63 ▼0.0589.27 ▼1.8241.10 ▼4.43
Posts /wp-admin/edit.php2,107 ▲72.14 ▲0.1839.98 ▲2.4736.54 ▼2.42
Add New Post /wp-admin/post-new.php1,530 ▲223.10 ▼0.16618.46 ▼45.0953.20 ▲2.00
Media Library /wp-admin/upload.php1,398 ▲14.17 ▼0.0999.47 ▼16.5643.71 ▼5.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/plus-features-for-advanced-custom-fields/common/partials/acfp-common-display.php
    • > /wp-content/plugins/plus-features-for-advanced-custom-fields/public/partials/acfp-public-display.php
    • > /wp-content/plugins/plus-features-for-advanced-custom-fields/admin/partials/acfp-admin-display.php
  • 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-button-group.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-taxonomy.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-radio.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-post-object.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-true-false.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-text.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-select.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-textarea.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-wysiwyg.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-range.php:20

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

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

plus-features-for-advanced-custom-fields/acfp.php 85% from 13 tests

This is the main PHP file of "Plus Features for Advanced Custom Fields" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("plus-features-for-advanced-custom-fields.php" instead of "acfp.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,991 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP463582,1581,537
JavaScript55293307
CSS30878
Sass114169

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity5.47
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes35
▷ Abstract classes00.00%
▷ Concrete classes35100.00%
▷ Final classes00.00%
Methods97
▷ Static methods22.06%
▷ Public methods5758.76%
▷ Protected methods3334.02%
▷ Private methods77.22%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-5.png73.48KB38.18KB▼ 48.04%
assets/screenshot-1.png6.90KB2.79KB▼ 59.63%
assets/screenshot-4.png22.22KB8.69KB▼ 60.88%
assets/screenshot-3.png8.07KB3.68KB▼ 54.48%
assets/screenshot-2.png28.19KB11.85KB▼ 57.97%