99% acf-image-mapping-hotspots

Code Review | ACF: Image Hotspots Field

WordPress plugin ACF: Image Hotspots Field scored 99% from 54 tests.

About plugin

  • Plugin page: acf-image-mapping...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 5.9.2
  • First release: Jan 17, 2017
  • Latest release: Feb 23, 2017
  • Number of updates: 13
  • Update frequency: every 2.9 days
  • Top authors: rockwell15 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active / 10,985 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by ACF: Image Hotspots Field
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0253.25 ▲4.57
Dashboard /wp-admin3.42 ▲0.0133.19 ▼0.92
Posts /wp-admin/edit.php3.66 ▲0.0138.15 ▲1.16
Add New Post /wp-admin/post-new.php6.89 ▼0.0893.26 ▼1,175.64
Media Library /wp-admin/upload.php3.31 ▲0.0126.01 ▲3.50

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACF: Image Hotspots Field: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲515.89 ▲0.166.19 ▲0.202.12 ▼0.34
Dashboard /wp-admin2,892 ▲316.12 ▼0.08119.12 ▼15.27153.85 ▼9.13
Posts /wp-admin/edit.php2,694 ▼03.23 ▲0.0164.41 ▼0.72139.65 ▼4.70
Add New Post /wp-admin/post-new.php1,760 ▲9922.68 ▲5.78428.38 ▲8.53156.67 ▼0.64
Media Library /wp-admin/upload.php1,698 ▼35.54 ▼0.01137.32 ▼9.35186.96 ▲3.51

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 Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

acf-image-mapping-hotspots/acf-image-hotspots.php 92% from 13 tests

Analyzing the main PHP file in "ACF: Image Hotspots Field" version 0.1
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-image-mapping-hotspots.php" instead of "acf-image-hotspots.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin361 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP3278607198
JavaScript1806695
Markdown632064
CSS1114

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin