89% acf-image-mapping-hotspots

Code Review | ACF: Image Hotspots Field

WordPress plugin ACF: Image Hotspots Field scored89%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: 6.3.1
  • 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

11 reviews

Install metrics

2,000+ active /17,608 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.01MB] [CPU: ▼3.60ms] Passed 4 tests

An overview of server-side resources used by ACF: Image Hotspots Field
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.54 ▼0.54
Dashboard /wp-admin3.31 ▲0.0144.59 ▼5.45
Posts /wp-admin/edit.php3.36 ▲0.0152.83 ▲7.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.49 ▼5.30
Media Library /wp-admin/upload.php3.23 ▲0.0133.21 ▼3.11

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for ACF: Image Hotspots Field
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.454.81 ▲3.0141.75 ▼6.71
Dashboard /wp-admin2,209 ▲244.88 ▼1.0199.08 ▼8.5137.87 ▼2.24
Posts /wp-admin/edit.php2,086 ▼62.12 ▲0.1340.13 ▼5.5635.44 ▼2.18
Add New Post /wp-admin/post-new.php1,542 ▲2318.14 ▼5.11615.05 ▼72.9460.66 ▲8.68
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.0496.35 ▲0.1840.48 ▼7.96

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

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

"ACF: Image Hotspots Field" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same 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 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected361 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP3278607198
JavaScript1806695
Markdown632064
CSS1114

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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