90% image-point-selector-field-for-advanced-custom-fields

Code Review | Image Point Selector Field for Advanced Custom Fields

WordPress plugin Image Point Selector Field for Advanced Custom Fields scored 90% from 54 tests.

About plugin

  • Plugin page: image-point-selec...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 19, 2020
  • Latest release: Nov 19, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: groenroos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 342 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.01MB] [CPU: ▼7.28ms] Passed 4 tests

Analyzing server-side resources used by Image Point Selector Field for Advanced Custom Fields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.88 ▼8.41
Dashboard /wp-admin3.31 ▲0.0143.30 ▼2.81
Posts /wp-admin/edit.php3.36 ▲0.0145.11 ▼3.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.17 ▼12.23
Media Library /wp-admin/upload.php3.24 ▲0.0132.35 ▼4.72

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Image Point Selector Field for Advanced Custom Fields
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.461.77 ▼0.3643.65 ▲0.79
Dashboard /wp-admin2,206 ▲185.81 ▼0.0996.27 ▼9.8237.79 ▼4.93
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0835.24 ▼1.5332.80 ▼0.40
Add New Post /wp-admin/post-new.php1,542 ▼018.27 ▼0.17622.58 ▼18.3653.11 ▲5.00
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0393.19 ▼17.8240.24 ▼9.64

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
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% 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
3 plugin tags: map, image, point

image-point-selector-field-for-advanced-custom-fields/acf-image-point-selector.php 92% from 13 tests

The main PHP file in "Image Point Selector Field for Advanced Custom Fields" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("image-point-selector-field-for-advanced-custom-fields.php" instead of "acf-image-point-selector.php")

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
No dangerous file extensions were detected143 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP29214299
JavaScript1243632
Markdown17012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
No PNG files were detected