83% advanced-custom-fields-multiple-coordinates

Code Review | Advanced Custom Fields: Multiple Coordinates

WordPress plugin Advanced Custom Fields: Multiple Coordinates scored83%from 54 tests.

About plugin

  • Plugin page: advanced-custom-f...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2013
  • Latest release: Jun 10, 2014
  • Number of updates: 5
  • Update frequency: every 45.8 days
  • Top authors: web111se (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /2,532 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.76ms] Passed 4 tests

A check of server-side resources used by Advanced Custom Fields: Multiple Coordinates
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.41 ▼3.65
Dashboard /wp-admin3.31 ▲0.0145.16 ▼1.70
Posts /wp-admin/edit.php3.36 ▲0.0045.72 ▼5.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.25 ▼3.80
Media Library /wp-admin/upload.php3.23 ▲0.0033.56 ▲1.04

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Custom Fields: Multiple Coordinates
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.291.64 ▼0.3040.59 ▼6.74
Dashboard /wp-admin2,206 ▲185.89 ▲0.9995.77 ▼16.5839.50 ▼2.27
Posts /wp-admin/edit.php2,089 ▼32.05 ▼0.0138.84 ▼1.8534.72 ▼0.98
Add New Post /wp-admin/post-new.php1,533 ▼1123.11 ▲4.78583.15 ▼45.9754.01 ▲0.05
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0998.18 ▲1.2544.03 ▲3.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-multiple-coordinates/acf-multiple-coordinates.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-multiple-coordinates/fields.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Screenshots: Screenshot #1 (The plugin in action in the backend.) image missing
The official readme.txt is a good inspiration

advanced-custom-fields-multiple-coordinates/acf-multiple-coordinates.php 92% from 13 tests

"Advanced Custom Fields: Multiple Coordinates" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-custom-fields-multiple-coordinates.php" instead of "acf-multiple-coordinates.php")

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
Everything looks great! No dangerous files found in this plugin302 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript148107201
PHP2239081
CSS161720

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.51MB with 0.32MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png522.25KB197.24KB▼ 62.23%