83% acf-yandex-maps-field

Code Review | ACF: Yandex Maps Field

WordPress plugin ACF: Yandex Maps Field scored83%from 54 tests.

About plugin

  • Plugin page: acf-yandex-maps-f...
  • Plugin version: 1.1
  • PHP compatiblity: 7.4 or higher+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 12, 2022
  • Latest release: Jan 23, 2023
  • Number of updates: 11
  • Update frequency: every 4.2 days
  • Top authors: romchyk16 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /632 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

An overview of server-side resources used by ACF: Yandex Maps Field
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0233.68 ▼1.27
Dashboard /wp-admin3.34 ▼0.0146.01 ▼23.09
Posts /wp-admin/edit.php3.39 ▲0.0347.61 ▲2.35
Add New Post /wp-admin/post-new.php5.92 ▲0.0289.59 ▼6.75
Media Library /wp-admin/upload.php3.26 ▲0.0339.38 ▲4.91
ACF Yandex Map Settings /wp-admin/options-general.php?page=acf-yandex-map3.2228.49

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ACF: Yandex Maps Field
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.17 ▼1.481.68 ▼0.0637.89 ▼3.28
Dashboard /wp-admin2,207 ▲195.86 ▲1.0095.86 ▼13.3741.16 ▼2.23
Posts /wp-admin/edit.php2,093 ▲72.06 ▼0.0737.67 ▲2.9935.89 ▼0.61
Add New Post /wp-admin/post-new.php1,536 ▲1723.18 ▲0.07687.60 ▼8.4764.12 ▲8.00
Media Library /wp-admin/upload.php1,392 ▲14.22 ▲0.03113.43 ▲4.2249.90 ▲3.27
ACF Yandex Map Settings /wp-admin/options-general.php?page=acf-yandex-map7792.0324.2224.99

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/acf-yandex-maps-field/acf-yandex-map-fields.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: yandex, fields, map, advanced custom fields, acf...

acf-yandex-maps-field/acf-yandex-map-fields.php 62% from 13 tests

The main file in "ACF: Yandex Maps Field" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-yandex-maps-field.php" instead of "acf-yandex-map-fields.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires PHP: Required version number should only contain digits separated by dots (ex. "7.0" instead of "7.4 or higher")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "6.1.1")

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 detected891 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP312952539
JavaScript210043279
PO File1282873

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity15.33
▷ Minimum class complexity4.00
▷ Maximum class complexity21.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected