84% acf-for-gridsome

Code Review | ACF For Gridsome

WordPress plugin ACF For Gridsome scored84%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: 6.3.1
  • 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 /481 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.65MB] [CPU: ▼16.07ms] Passed 4 tests

Analyzing server-side resources used by ACF For Gridsome
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.34 ▼5.07
Dashboard /wp-admin3.34 ▲0.0347.25 ▼5.44
Posts /wp-admin/edit.php3.39 ▲0.0350.82 ▲1.57
Add New Post /wp-admin/post-new.php3.21 ▼2.6738.21 ▼52.61
Media Library /wp-admin/upload.php3.26 ▲0.0335.50 ▼1.16

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF For Gridsome
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.31 ▼1.072.59 ▲0.5540.44 ▼6.11
Dashboard /wp-admin2,215 ▲156.00 ▲0.14102.67 ▼3.4339.01 ▼3.48
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0435.85 ▼4.2633.66 ▼2.24
Add New Post /wp-admin/post-new.php1,545 ▼023.18 ▼0.25647.09 ▲8.1346.64 ▼12.51
Media Library /wp-admin/upload.php1,397 ▼04.22 ▼0.0197.55 ▼13.6742.43 ▼0.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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

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
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === acf-for-gridsome === )
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "ACF For Gridsome" version 0.5
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-for-gridsome.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin164 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11613149
Markdown15015

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions660.00%
▷ Anonymous functions440.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin