99% add-wpgraphql-seo

Code Review | WPGraphQL Yoast SEO Addon

WordPress plugin WPGraphQL Yoast SEO Addon scored 99% from 54 tests.

About plugin

  • Plugin page: add-wpgraphql-seo
  • Plugin version: 4.17.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 5.9.2
  • First release: Aug 19, 2020
  • Latest release: Mar 29, 2022
  • Number of updates: 26
  • Update frequency: every 22.6 days
  • Top authors: ash_hitch (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

4,000+ active / 27,968 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼295.51ms] Passed 4 tests

This is a short check of server-side resources used by WPGraphQL Yoast SEO Addon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.2558.22 ▲7.61
Dashboard /wp-admin3.67 ▲0.2634.70 ▼5.26
Posts /wp-admin/edit.php3.89 ▲0.2538.05 ▼1.57
Add New Post /wp-admin/post-new.php7.14 ▲0.1695.29 ▼1,174.57
Media Library /wp-admin/upload.php3.54 ▲0.2425.56 ▼0.63

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WPGraphQL Yoast SEO Addon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,825 ▲6715.68 ▼0.077.43 ▲1.273.41 ▲0.58
Dashboard /wp-admin2,921 ▲636.13 ▼0.00121.31 ▼10.09155.75 ▼8.87
Posts /wp-admin/edit.php2,723 ▲293.23 ▼0.0165.76 ▲1.97137.99 ▼3.32
Add New Post /wp-admin/post-new.php1,775 ▲11422.18 ▲4.95422.82 ▼14.60155.60 ▼0.43
Media Library /wp-admin/upload.php1,727 ▲295.56 ▲0.06146.66 ▲9.80188.73 ▼4.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
7 plugin tags: seo, headless wordpress, wpgraphql, graphql, jamstack...

add-wpgraphql-seo/wp-graphql-yoast-seo.php 77% from 13 tests

This is the main PHP file of "WPGraphQL Yoast SEO Addon" version 4.17.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("add-wpgraphql-seo.php" instead of "wp-graphql-yoast-seo.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path folder was not found ("/languages")

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
Everything looks great! No dangerous files found in this plugin1,863 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP291321,252
Markdown21850505
JSON30061
SVG10024
XML15321

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.71
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%
Functions22
▷ Named functions940.91%
▷ Anonymous functions1359.09%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.27MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/banner-772x250.png63.66KB19.20KB▼ 69.84%
banner.png33.33KB35.95KB0.00%
.wordpress-org/icon-128x128.png15.24KB5.72KB▼ 62.46%
.wordpress-org/banner-1544x500.png134.71KB39.93KB▼ 70.36%
.wordpress-org/icon-256x256.png28.82KB9.51KB▼ 67.00%