94% acf-for-gridsome

Code Review | ACF For Gridsome

WordPress plugin ACF For Gridsome scored 94% from 54 tests.

About plugin

  • Plugin page: acf-for-gridsome
  • Plugin version: 0.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-7.2
  • WordPress version: 5.9.2
  • First release: Jun 10, 2020
  • Latest release: Jun 10, 2020
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: ftpyz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 271 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.90MB] [CPU: ▼317.63ms] Passed 4 tests

This is a short check of server-side resources used by ACF For Gridsome
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0456.59 ▼1.21
Dashboard /wp-admin3.45 ▲0.0434.71 ▼0.42
Posts /wp-admin/edit.php3.67 ▲0.0342.80 ▲4.37
Add New Post /wp-admin/post-new.php3.27 ▼3.7031.02 ▼1,267.49
Media Library /wp-admin/upload.php3.33 ▲0.0226.60 ▼1.38

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ACF For Gridsome
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲3815.89 ▲0.245.92 ▼0.152.31 ▼0.11
Dashboard /wp-admin2,888 ▲276.16 ▼0.13119.52 ▼19.93154.52 ▼5.65
Posts /wp-admin/edit.php2,694 ▲63.24 ▼0.0065.58 ▲1.75134.87 ▼6.69
Add New Post /wp-admin/post-new.php1,690 ▲2920.65 ▲4.62429.43 ▲29.42149.55 ▼7.40
Media Library /wp-admin/upload.php1,695 ▼05.47 ▼0.07135.97 ▼9.58183.33 ▼9.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/acf-for-gridsome/index.php:10

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === acf-for-gridsome === )
The official readme.txt is a good inspiration

acf-for-gridsome/index.php 92% from 13 tests

"ACF For Gridsome" version 0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-for-gridsome.php" instead of "index.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 plugin164 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions660.00%
▷ Anonymous functions440.00%
▷ 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
There are no PNG files in this plugin