89% add-wpgraphql-seo

Code Review | WPGraphQL Yoast SEO Addon

WordPress plugin WPGraphQL Yoast SEO Addon scored89%from 54 tests.

About plugin

  • Plugin page: add-wpgraphql-seo
  • Plugin version: 4.22.5
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2020
  • Latest release: Jun 30, 2023
  • Number of updates: 37
  • Update frequency: every 28.2 days
  • Top authors: ash_hitch (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

7,000+ active /94,135 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.09ms] Passed 4 tests

An overview of server-side resources used by WPGraphQL Yoast SEO Addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.20 ▼6.49
Dashboard /wp-admin3.31 ▲0.0144.40 ▼0.40
Posts /wp-admin/edit.php3.36 ▲0.0145.89 ▼4.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.65 ▼25.39
Media Library /wp-admin/upload.php3.23 ▲0.0133.23 ▲0.02

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WPGraphQL Yoast SEO Addon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10913.14 ▼1.071.98 ▼0.4747.43 ▼1.58
Dashboard /wp-admin2,228 ▲495.90 ▲0.95107.08 ▲3.0141.59 ▲0.32
Posts /wp-admin/edit.php2,108 ▲162.02 ▼0.0039.41 ▲0.3035.84 ▲0.05
Add New Post /wp-admin/post-new.php1,549 ▲1623.13 ▼0.45629.70 ▼122.9860.40 ▲8.95
Media Library /wp-admin/upload.php1,407 ▲224.23 ▲0.0694.46 ▼7.1741.24 ▼3.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: yoast, graphql, decoupled wordpress, seo, wpgraphql...

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.22.5, 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:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • 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")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,631 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP29937935
Markdown22220594
JSON30054
SVG10024
XML15321
Bourne Shell1103

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.61
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%
Functions25
▷ Named functions1040.00%
▷ Anonymous functions1560.00%
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-1544x500.png134.71KB39.93KB▼ 70.36%
.wordpress-org/icon-128x128.png15.24KB5.72KB▼ 62.46%
.wordpress-org/banner-772x250.png63.66KB19.20KB▼ 69.84%
banner.png33.33KB35.95KB0.00%
.wordpress-org/icon-256x256.png28.82KB9.51KB▼ 67.00%