84% acf-content-analysis-for-yoast-seo

Code Review | ACF Content Analysis for Yoast SEO

WordPress plugin ACF Content Analysis for Yoast SEO scored84%from 54 tests.

About plugin

  • Plugin page: acf-content-analy...
  • Plugin version: 3.1
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Dec 17, 2015
  • Latest release: Sep 20, 2023
  • Number of updates: 44
  • Update frequency: every 64.4 days
  • Top authors: Yoast (54.55%)ViktorFroberg (31.82%)atimmer (11.36%)marol87 (6.82%)jipmoors (4.55%)

Code review

54 tests

User reviews

35 reviews

Install metrics

200,000+ active /1,840,265 total downloads

Benchmarks

Plugin footprint 83% from 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.11MB] [CPU: ▼6.48ms] Passed 4 tests

An overview of server-side resources used by ACF Content Analysis for Yoast SEO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1044.35 ▲1.50
Dashboard /wp-admin3.47 ▲0.0847.93 ▼11.25
Posts /wp-admin/edit.php3.58 ▲0.1851.59 ▲1.33
Add New Post /wp-admin/post-new.php6.05 ▲0.1295.04 ▼17.49
Media Library /wp-admin/upload.php3.39 ▲0.1240.46 ▲4.36

Server storage [IO: ▲0.27MB] [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: 80 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by ACF Content Analysis for Yoast SEO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▼0.001.77 ▼0.2448.14 ▲8.84
Dashboard /wp-admin2,201 ▲205.62 ▼0.0990.21 ▼10.6042.82 ▼0.72
Posts /wp-admin/edit.php2,109 ▲92.10 ▲0.0943.38 ▲9.9635.27 ▲2.35
Add New Post /wp-admin/post-new.php1,533 ▲722.97 ▼0.18607.00 ▼15.6751.56 ▲2.83
Media Library /wp-admin/upload.php1,409 ▲64.20 ▲0.0597.73 ▲0.5044.36 ▼2.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Yoast_ACF_Analysis_Dependency' not found in wp-content/plugins/acf-content-analysis-for-yoast-seo/inc/dependencies/dependency-yoast-seo.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Yoast\\PHPUnitPolyfills\\TestCases\\TestCase' not found in wp-content/plugins/acf-content-analysis-for-yoast-seo/tests/php/unit/registry-test.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Yoast\\WPTestUtils\\BrainMonkey\\TestCase' not found in wp-content/plugins/acf-content-analysis-for-yoast-seo/tests/php/unit/Configuration/configuration-test.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Yoast_ACF_Analysis_Dependency' not found in wp-content/plugins/acf-content-analysis-for-yoast-seo/tests/php/unit/Doubles/failing-dependency.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Yoast\\WPTestUtils\\BrainMonkey\\TestCase' not found in wp-content/plugins/acf-content-analysis-for-yoast-seo/tests/php/unit/Dependencies/acf-dependency-test.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Yoast\\WPTestUtils\\BrainMonkey\\TestCase' not found in wp-content/plugins/acf-content-analysis-for-yoast-seo/tests/php/unit/main-test.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Yoast\\WPTestUtils\\BrainMonkey\\TestCase' not found in wp-content/plugins/acf-content-analysis-for-yoast-seo/tests/php/unit/Dependencies/yoast-seo-dependency-test.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Yoast\\WPTestUtils\\BrainMonkey\\TestCase' not found in wp-content/plugins/acf-content-analysis-for-yoast-seo/tests/php/unit/requirements-test.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Yoast_ACF_Analysis_Dependency' not found in wp-content/plugins/acf-content-analysis-for-yoast-seo/tests/php/unit/Doubles/passing-dependency.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Yoast\\WPTestUtils\\BrainMonkey\\TestCase' not found in wp-content/plugins/acf-content-analysis-for-yoast-seo/tests/php/unit/assets-test.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
6 plugin tags: yoast, search engine optimization, analysis, advanced custom fields, seo...

acf-content-analysis-for-yoast-seo/yoast-acf-analysis.php 85% from 13 tests

"ACF Content Analysis for Yoast SEO" version 3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("6.2" instead of "6.1")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-content-analysis-for-yoast-seo.php" instead of "yoast-acf-analysis.php")

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
There were no executable files found in this plugin3,998 lines of code in 74 files:
LanguageFilesBlank linesComment linesLines of code
PHP364931,3092,245
JavaScript355982861,627
XML1284473
JSON20053

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.04
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces1
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes28.33%
Methods127
▷ Static methods2217.32%
▷ Public methods11691.34%
▷ Protected methods64.72%
▷ Private methods53.94%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants11
▷ Global constants981.82%
▷ Class constants218.18%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin