78% poi-acf-for-wp

Code Review | POI ACF for WP

WordPress plugin POI ACF for WP scored78%from 54 tests.

About plugin

  • Plugin page: poi-acf-for-wp
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Aug 11, 2020
  • Latest release: May 2, 2023
  • Number of updates: 7
  • Update frequency: every 142.0 days
  • Top authors: fahadmahmood (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /550 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲1.52ms] Passed 4 tests

This is a short check of server-side resources used by POI ACF for WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.55 ▼1.36
Dashboard /wp-admin3.34 ▲0.0350.25 ▲2.23
Posts /wp-admin/edit.php3.46 ▲0.1049.31 ▲2.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.74 ▲7.76
Media Library /wp-admin/upload.php3.26 ▲0.0341.86 ▲3.15

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for POI ACF for WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼0.956.03 ▲4.2842.68 ▼3.08
Dashboard /wp-admin2,203 ▲155.82 ▲0.86122.69 ▲10.7747.70 ▲3.62
Posts /wp-admin/edit.php2,068 ▼211.99 ▲0.0037.48 ▼0.2634.35 ▼8.92
Add New Post /wp-admin/post-new.php1,538 ▲523.37 ▼0.10672.49 ▲31.6675.95 ▲10.69
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.03110.54 ▼7.1149.46 ▲5.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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

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
Please take a closer look at the following
  • 10× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/poi-acf-for-wp/includes/location/products/control.products.php
    • > /wp-content/plugins/poi-acf-for-wp/includes/helper/acf-api.helper.php
    • > /wp-content/plugins/poi-acf-for-wp/index.php
    • > /wp-content/plugins/poi-acf-for-wp/includes/location/_base-location.php
    • > /wp-content/plugins/poi-acf-for-wp/includes/location/pages/control.pages.php
    • > /wp-content/plugins/poi-acf-for-wp/includes/helper/acf-renderer.helper.php
    • > /wp-content/plugins/poi-acf-for-wp/includes/core.class.php
    • > /wp-content/plugins/poi-acf-for-wp/includes/location-group/general.location-group.php
    • > /wp-content/plugins/poi-acf-for-wp/includes/singleton.class.php
    • > /wp-content/plugins/poi-acf-for-wp/includes/location-group/_base-location-group.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/poi-acf-for-wp/includes/functions.php:118
    • > PHP Notice
      Undefined variable: author in wp-content/plugins/poi-acf-for-wp/templates/author.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/poi-acf-for-wp/admin/general-settings-form.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function poi_acf_get_user_fields_data() in wp-content/plugins/poi-acf-for-wp/templates/author.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/poi-acf-for-wp/admin/admin-settings.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: advanced custom fields, acf, woocommerce, checkout, my account...

poi-acf-for-wp/index.php 85% from 13 tests

The principal PHP file in "POI ACF for WP" v. 1.0.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("poi-acf-for-wp.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,096 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP149504291,807
JavaScript512267255
CSS413634

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity19.27
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes327.27%
▷ Concrete classes872.73%
▷ Final classes00.00%
Methods115
▷ Static methods108.70%
▷ Public methods5749.57%
▷ Protected methods5648.70%
▷ Private methods21.74%
Functions29
▷ Named functions2172.41%
▷ Anonymous functions827.59%
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
PNG images were not found in this plugin